소스 검색

ensure string-format of auth-credentials

tags/v1.2.0
fabian 6 년 전
부모
커밋
0e6beaab50
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      certbot_pdns/pdnsapi.py

+ 1
- 1
certbot_pdns/pdnsapi.py 파일 보기

@@ -28,7 +28,7 @@ class PdnsApi:
28 28
         
29 29
     def set_http_auth(self, http_auth):             # credentials should be given as list containing two elements
30 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 33
     def _query(self, uri, method, kwargs=None):
34 34
         headers = {

Loading…
취소
저장