Parcourir la source

ensure string-format of auth-credentials

tags/v1.2.0
fabian il y a 6 ans
Parent
révision
0e6beaab50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      certbot_pdns/pdnsapi.py

+ 1
- 1
certbot_pdns/pdnsapi.py Voir le fichier

28
         
28
         
29
     def set_http_auth(self, http_auth):             # credentials should be given as list containing two elements
29
     def set_http_auth(self, http_auth):             # credentials should be given as list containing two elements
30
         if len(http_auth == 2):                     # first: username, second: password for http-basic auth
30
         if len(http_auth == 2):                     # first: username, second: password for http-basic auth
31
-            self.http_auth = http_auth
31
+            self.http_auth = (str(http_auth[0]), str(http_auth[1]))
32
         
32
         
33
     def _query(self, uri, method, kwargs=None):
33
     def _query(self, uri, method, kwargs=None):
34
         headers = {
34
         headers = {

Chargement…
Annuler
Enregistrer