Przeglądaj źródła

Update pdnsapi.py

enabled use of real bool as setting for veriry-certs in json-file
tags/v1.2.0
lowEagle 6 lat temu
rodzic
commit
fac7423e2e
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      certbot_pdns/pdnsapi.py

+ 2
- 2
certbot_pdns/pdnsapi.py Wyświetl plik

19
         self.base_url = base_url
19
         self.base_url = base_url
20
 
20
 
21
     def set_verify_cert(self, verify_cert):
21
     def set_verify_cert(self, verify_cert):
22
-        if verify_cert in ("True", "true"):         # convert from string to real bool
22
+        if verify_cert in ("True", "true", True):         # convert from string to real bool if needed
23
             self.verify_cert = True
23
             self.verify_cert = True
24
-        elif verify_cert in ("False", "false"):     # convert from string to real bool
24
+        elif verify_cert in ("False", "false", False):    # convert from string to real bool if needed
25
             self.verify_cert = False
25
             self.verify_cert = False
26
         elif isinstance(verify_cert, str):          # alternative: path to local cert is given as string
26
         elif isinstance(verify_cert, str):          # alternative: path to local cert is given as string
27
             self.verify_cert = verify_cert          # see requests-documentation for more info
27
             self.verify_cert = verify_cert          # see requests-documentation for more info

Ładowanie…
Anuluj
Zapisz