mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +02:00
fix typo in check for isSubdomain
This commit is contained in:
parent
51307d3b12
commit
5e316adfd4
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
NameserverError (if exception hit)
|
NameserverError (if exception hit)
|
||||||
Returns:
|
Returns:
|
||||||
None"""
|
None"""
|
||||||
if self.isSubdomain(nameserver) and (ip is None or ip == [] or ip != []):
|
if self.isSubdomain(nameserver) and (ip is None or ip == [] or ip == ['']):
|
||||||
raise NameserverError(code=nsErrorCodes.MISSING_IP, nameserver=nameserver)
|
raise NameserverError(code=nsErrorCodes.MISSING_IP, nameserver=nameserver)
|
||||||
|
|
||||||
elif not self.isSubdomain(nameserver) and (ip is not None and ip != [] and ip != ['']):
|
elif not self.isSubdomain(nameserver) and (ip is not None and ip != [] and ip != ['']):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue