Browse Source

Update pdnsapi.py

enabled use of real bool as setting for veriry-certs in json-file
tags/v1.2.0
lowEagle 6 years ago
parent
commit
fac7423e2e
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      certbot_pdns/pdnsapi.py

+ 2
- 2
certbot_pdns/pdnsapi.py View File

@@ -19,9 +19,9 @@ class PdnsApi:
19 19
         self.base_url = base_url
20 20
 
21 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 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 25
             self.verify_cert = False
26 26
         elif isinstance(verify_cert, str):          # alternative: path to local cert is given as string
27 27
             self.verify_cert = verify_cert          # see requests-documentation for more info

Loading…
Cancel
Save