mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-30 13:03:14 +02:00
Remove extraneous print statements and rename extendedValues to threeNS
This commit is contained in:
parent
5fcae0cb80
commit
fbad2abd9d
3 changed files with 9 additions and 10 deletions
|
@ -277,14 +277,12 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
return self.name in nameserver
|
||||
|
||||
def checkHostIPCombo(self, nameserver: str, ip: list):
|
||||
print("Do I come into checkHostIPCombo")
|
||||
if self.isSubdomain(nameserver) and (ip is None or ip == []):
|
||||
raise ValueError(
|
||||
"Nameserver %s needs to have an "
|
||||
"IP address because it is a subdomain" % nameserver
|
||||
)
|
||||
elif not self.isSubdomain(nameserver) and (ip is not None and ip != []):
|
||||
print("In 2nd else statement")
|
||||
raise ValueError(
|
||||
"Nameserver %s cannot be linked "
|
||||
"because %s is not a subdomain" % (nameserver, ip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue