From 47ea9f414f25cb6e72d1958a2d09ed09e3c6b4e8 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 9 Jul 2015 21:29:48 +0200 Subject: [PATCH] namecheap: Fix undeclared variable. Fixes #10897. Signed-off-by: Stefan Schantl --- src/ddns/providers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2