mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
added comments, removed empty lines, and renamed methods for code legibility
This commit is contained in:
parent
f94363a836
commit
181cfccfc5
6 changed files with 30 additions and 28 deletions
|
@ -458,11 +458,21 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
@Cache
|
||||
def dnssecdata(self) -> Optional[extensions.DNSSECExtension]:
|
||||
"""
|
||||
Get a complete list of dnssecdata extensions for this domain.
|
||||
|
||||
dnssecdata are provided as a list of DNSSECExtension objects.
|
||||
|
||||
A DNSSECExtension object includes:
|
||||
maxSigLife: Optional[int]
|
||||
dsData: Optional[Sequence[DSData]]
|
||||
keyData: Optional[Sequence[DNSSECKeyData]]
|
||||
|
||||
"""
|
||||
try:
|
||||
return self._get_property("dnssecdata")
|
||||
except Exception as err:
|
||||
# Don't throw error as this is normal for a new domain
|
||||
# TODO - 433 error handling ticket should address this
|
||||
logger.info("Domain does not have dnssec data defined %s" % err)
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue