Browse Source

Fix another variable reference issue.

Joe Clarke 4 years ago
parent
commit
5de8264d8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      automation/services/dns-hook.py

+ 1 - 1
automation/services/dns-hook.py

@@ -92,7 +92,7 @@ def create_alias(hostname, alias):
         hostname += "."
 
     if not hostname.endswith("."):
-        hostname += "." + DOMAIN + "."
+        hostname += "." + C.DNS_DOMAIN + "."
 
     rr_obj = {"name": alias, "zoneOrigin": C.DNS_DOMAIN, "rrs": {"stringItem": ["IN CNAME {}".format(hostname)]}}