fixes bug introduced in prior commit

This commit is contained in:
Aaron Blankstein
2017-09-25 11:15:15 -04:00
committed by Jude Nelson
parent 3f71a7e9e7
commit 4c93cb683d

View File

@@ -197,7 +197,7 @@ def format_profile(profile, fqa, zone_file, refresh=False):
NAME_PATTERN = re.compile(OP_NAME_PATTERN)
NS_PATTERN = re.compile(OP_NAMESPACE_PATTERN)
def is_valid_fqa(fqa):
if (NAME_PATTERN.match(username) is None):
if (NAME_PATTERN.match(fqa) is None):
return False
try:
username, ns = fqa.split(".")