mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
Point back to cleaned host
This commit is contained in:
parent
0f12a535fb
commit
410b0250fc
1 changed files with 1 additions and 1 deletions
|
@ -1779,7 +1779,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
host_in_db, host_created = Host.objects.get_or_create(domain=self, name=cleaned_host["name"])
|
||||
# Check if the nameserver is a subdomain of the current domain
|
||||
# If it is NOT a subdomain, we remove the IP address
|
||||
if not Domain.isSubdomain(self.name, host_in_db.name):
|
||||
if not Domain.isSubdomain(self.name, cleaned_host["name"]):
|
||||
cleaned_host["addrs"] = []
|
||||
# Get cleaned list of ips for update
|
||||
cleaned_ips = cleaned_host["addrs"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue