ソースを参照

Merge pull request #3 from kostich/master

Explicitly convert token to string
tags/v1.1.1
Robin Thoni 7年前
コミット
fe582b2f69
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      certbot_pdns/PdnsApiAuthenticator.py

+ 1
- 1
certbot_pdns/PdnsApiAuthenticator.py ファイルの表示

74
 
74
 
75
         logger.debug("Found zone %s for domain %s" % (zone["name"], domain))
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
         if res is not None:
78
         if res is not None:
79
             raise errors.PluginError("Bad return from PDNS API when adding record: %s" % res)
79
             raise errors.PluginError("Bad return from PDNS API when adding record: %s" % res)
80
 
80
 

読み込み中…
キャンセル
保存