From 82add9a933747c0e726b68aa2ddfdbf352ca9d3c Mon Sep 17 00:00:00 2001 From: Masin Al-Dujaili Date: Mon, 13 Apr 2020 22:44:40 +0200 Subject: [PATCH] Fixed wrong variable name --- .../requires.txt | 2 +- .../dns_corenetworks.cpython-38.pyc | Bin 3867 -> 3868 bytes certbot_dns_corenetworks/dns_corenetworks.py | 17 +++++++++++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/certbot_dns_corenetworks.egg-info/requires.txt b/certbot_dns_corenetworks.egg-info/requires.txt index a08ac39..e079616 100644 --- a/certbot_dns_corenetworks.egg-info/requires.txt +++ b/certbot_dns_corenetworks.egg-info/requires.txt @@ -4,4 +4,4 @@ setuptools requests mock requests-mock -lexicon +dns-lexicon diff --git a/certbot_dns_corenetworks/__pycache__/dns_corenetworks.cpython-38.pyc b/certbot_dns_corenetworks/__pycache__/dns_corenetworks.cpython-38.pyc index fb62f78f49b83d6377a9ee6c4af0319fdb514f0b..843259f8b5e5d7916398cec10bbdd4b075858337 100644 GIT binary patch delta 152 zcmbO&H%E>yl$V!_0SIoNof7wmZzJCwW=77*ubICyYD|92@|;n3^J!L3Mn=QQqU?_t z?Iw3}NKY2#C}ng6vNkcgOt#^?%gMvU$j8FL!oj;)iHnDkk2kTjBqP4GIJGD*F*kLx wHFq1YFVOsA5s)oFm7C9TH!?CtPY&R1<@W$dumK4UMiv$xzRgc~%@`R?0rxB>p#T5? delta 151 zcmbOuH(QP`l$V!_0SJ^Vr^I>kY~;Jc%*Z(THS>2yg~^Xuo-?X$KF#XM$f!A4l>HH- z@#Ibp>B+(zrHp1k)+R>F$u^vKIa!z(`B*quIJh<|aq%$n@+6j)WW<*irxxWU=1#WZ wZsT0G>Z1*Z=?k diff --git a/certbot_dns_corenetworks/dns_corenetworks.py b/certbot_dns_corenetworks/dns_corenetworks.py index 8728e07..a754edf 100644 --- a/certbot_dns_corenetworks/dns_corenetworks.py +++ b/certbot_dns_corenetworks/dns_corenetworks.py @@ -26,6 +26,14 @@ class Authenticator(dns_common.DNSAuthenticator): ttl = 60 def __init__(self, *args, **kwargs): +# l = open('corenetworks.log', 'a') +# for arg in args: +# l.write("Arg: %s\n" % arg) +# for kwarg in kwargs: +# l.write("KWarg: %s\n" % kwarg) +# l.write(str(config)) +# l.write("Authenticator instantiated with args %s and kwargs %s" % (*args, **kwargs)) +# l.close() super(Authenticator, self).__init__(*args, **kwargs) self.credentials = None @@ -47,6 +55,9 @@ class Authenticator(dns_common.DNSAuthenticator): 'password': 'Password for API user' } ) +# l = open('corenetworks.log', 'a') +# l.write("_setup_credentials configured these credentials: %s\n" % str(self.credentials) ) +# l.close() def _perform(self, domain, validation_name, validation): self._get_corenetworks_client().add_txt_record(domain, validation_name, validation) @@ -65,11 +76,13 @@ class _CoreNetworksLexiconClient(dns_common_lexicon.LexiconClient): def __init__(self, login, password, ttl): super(_CoreNetworksLexiconClient, self).__init__() - +# l = open('corenetworks.log', 'a') +# l.write("_CoreNetworksLexiconClient instantiated with login {0} and password {1}".format(login, password)) +# l.close() config = dns_common_lexicon.build_lexicon_config('corenetworks', { 'ttl': ttl, }, { - 'auth_usernam': login, + 'auth_username': login, 'auth_password': password })