mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
changed UpdateDomain on nameserver.setter to be called with all the added/removed hosts in one call
This commit is contained in:
parent
65cf774e84
commit
ffede9817f
4 changed files with 122 additions and 105 deletions
|
@ -35,6 +35,7 @@ class NameserverErrorCodes(IntEnum):
|
|||
GLUE_RECORD_NOT_ALLOWED = 2
|
||||
INVALID_IP = 3
|
||||
TOO_MANY_HOSTS = 4
|
||||
UNABLE_TO_UPDATE_DOMAIN = 5
|
||||
|
||||
|
||||
class NameserverError(Exception):
|
||||
|
@ -52,6 +53,10 @@ class NameserverError(Exception):
|
|||
NameserverErrorCodes.TOO_MANY_HOSTS: (
|
||||
"Too many hosts provided, you may not have more than " "13 nameservers."
|
||||
),
|
||||
NameserverErrorCodes.UNABLE_TO_UPDATE_DOMAIN: (
|
||||
"Unable to update domain, changes were not applied."
|
||||
"Check logs as a Registry Error is the likely cause"
|
||||
),
|
||||
}
|
||||
|
||||
def __init__(self, *args, code=None, nameserver=None, ip=None, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue