nsupdate.info: Use "token" instead of "secret" in config file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 10 Sep 2014 19:10:24 +0000 (21:10 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 10 Sep 2014 19:10:24 +0000 (21:10 +0200)
For compatiblity reasons to previously used "secret" is still supported.

ddns.conf.sample
src/ddns/providers.py

index c05a1ce..cad8a89 100644 (file)
@@ -88,7 +88,7 @@
 
 # [test.nsupdate.info]
 # provider = nsupdate.info
-# secret = secret
+# token = token
 
 # [test.opendns.com]
 # handle = opendns.com
index 2a89b50..aac9ff8 100644 (file)
@@ -885,7 +885,7 @@ class DDNSProviderNsupdateINFO(DDNSProtocolDynDNS2, DDNSProvider):
 
        @property
        def password(self):
-               return self.get("secret")
+               return self.token or self.get("secret")
 
        @property
        def url(self):