mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 03:06:01 +02:00
Reformat DNS name servers
This commit is contained in:
parent
ea567192d0
commit
9c939d4a84
1 changed files with 2 additions and 4 deletions
|
@ -257,10 +257,8 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
hostList = []
|
||||
for host in hosts:
|
||||
host_info = host["name"]
|
||||
if len(host["addrs"]) > 0:
|
||||
hostList.append(tuple(host["addrs"]))
|
||||
hostList.append(host_info)
|
||||
host_info_str = f'{host["name"]} {host["addrs"] if len(host["addrs"]) > 0 else ""}'
|
||||
hostList.append(host_info_str)
|
||||
return hostList
|
||||
|
||||
@Cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue