undo of commit a7f55de

did not fix issue #1261
leaded into issue #1321
This commit is contained in:
Dominik Fahr 2022-12-12 17:30:42 +01:00
parent ce4447bb12
commit 52169f698c

View File

@ -119,16 +119,12 @@ def fetch_json(remote_url,
def display_record_name(data): def display_record_name(data):
# Check that the data argument is a tuple containing two elements record_name, domain_name = data
if isinstance(data, Iterable) and len(data) == 2: if record_name == domain_name:
record_name, domain_name = data return '@'
if record_name == domain_name:
return '@'
else:
return record_name
else: else:
# If data is not a tuple of length 2, return an empty string return re.sub('\.{}$'.format(domain_name), '', record_name)
return ''
def display_master_name(data): def display_master_name(data):
""" """