From: Stefan Schantl Date: Thu, 9 Jul 2015 19:29:48 +0000 (+0200) Subject: namecheap: Fix undeclared variable. X-Git-Tag: 008~1 X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=commitdiff_plain;h=47ea9f414f25cb6e72d1958a2d09ed09e3c6b4e8;ds=sidebyside namecheap: Fix undeclared variable. Fixes #10897. Signed-off-by: Stefan Schantl --- diff --git a/src/ddns/providers.py b/src/ddns/providers.py index e708fd6..6ac5564 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -1173,8 +1173,11 @@ class DDNSProviderNamecheap(DDNSResponseParserXML, DDNSProvider): # Namecheap requires the hostname splitted into a host and domain part. host, domain = self.hostname.split(".", 1) + # Get and store curent IP address. + address = self.get_address(proto) + data = { - "ip" : self.get_address(proto), + "ip" : address, "password" : self.password, "host" : host, "domain" : domain