|
@@ -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
|