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):
# Check that the data argument is a tuple containing two elements
if isinstance(data, Iterable) and len(data) == 2:
record_name, domain_name = data
if record_name == domain_name:
return '@'
else:
return record_name
else:
# If data is not a tuple of length 2, return an empty string
return ''
return re.sub('\.{}$'.format(domain_name), '', record_name)
def display_master_name(data):
"""