Ver código fonte

Explicitly convert token to string

tags/v1.1.1
Марко М. Костић (Marko M. Kostić) 6 anos atrás
pai
commit
7f0a9d81e8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      certbot_pdns/PdnsApiAuthenticator.py

+ 1
- 1
certbot_pdns/PdnsApiAuthenticator.py Ver arquivo

@@ -74,7 +74,7 @@ class PdnsApiAuthenticator:
74 74
 
75 75
         logger.debug("Found zone %s for domain %s" % (zone["name"], domain))
76 76
 
77
-        res = self.api.replace_record(zone["name"], "_acme-challenge." + domain + ".", "TXT", 1, "\"" + token + "\"", False, False)
77
+        res = self.api.replace_record(zone["name"], "_acme-challenge." + domain + ".", "TXT", 1, "\"" + token.decode('utf-8') + "\"", False, False)
78 78
         if res is not None:
79 79
             raise errors.PluginError("Bad return from PDNS API when adding record: %s" % res)
80 80
 

Carregando…
Cancelar
Salvar