mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-13 14:35:14 +02:00
formatting changes
This commit is contained in:
parent
eedd5d7dbf
commit
2f05772623
1 changed files with 2 additions and 8 deletions
|
@ -262,10 +262,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
returns ErrorCode (int)"""
|
||||
if addrs is not None and addrs != []:
|
||||
addresses = [
|
||||
epp.Ip(
|
||||
addr=addr,
|
||||
ip="v6" if self.is_ipv6(addr) else None
|
||||
)
|
||||
epp.Ip(addr=addr, ip="v6" if self.is_ipv6(addr) else None)
|
||||
for addr in addrs
|
||||
]
|
||||
request = commands.CreateHost(name=host, addrs=addresses)
|
||||
|
@ -1548,10 +1545,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
for ip_addr in ip_list:
|
||||
edited_ip_list.append(
|
||||
epp.Ip(
|
||||
addr=ip_addr,
|
||||
ip="v6" if self.is_ipv6(ip_addr) else None
|
||||
)
|
||||
epp.Ip(addr=ip_addr, ip="v6" if self.is_ipv6(ip_addr) else None)
|
||||
)
|
||||
|
||||
return edited_ip_list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue