mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
parent
ce4447bb12
commit
52169f698c
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user