mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 03:06:01 +02:00
Resolve lint errors
This commit is contained in:
parent
61d6dda59f
commit
6c26010fe5
2 changed files with 6 additions and 2 deletions
|
@ -257,10 +257,12 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
hostList = []
|
||||
for host in hosts:
|
||||
# can remove str conversion when EPP.IP address display changes from IP object -> IP address
|
||||
# can remove str conversion when EPP.IP address display
|
||||
# changes from IP object -> IP address
|
||||
host_addrs_stringified = [str(addr) for addr in host["addrs"]]
|
||||
host_addrs_str = f'({", ".join(obj for obj in host_addrs_stringified)})'
|
||||
host_info_str = f'{host["name"]} {host_addrs_str if len(host["addrs"]) > 0 else ""}'
|
||||
host_info_str = f'{host["name"]} \
|
||||
{host_addrs_str if len(host["addrs"]) > 0 else ""}'
|
||||
hostList.append(host_info_str)
|
||||
return hostList
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue