Skip to content

Commit feb13cf

Browse files
author
rnorthover
committed
Fix travis style errors
1 parent 25a5401 commit feb13cf

File tree

3 files changed

+42
-44
lines changed

3 files changed

+42
-44
lines changed

dyn/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ def _retry(self, msgs, final=False):
278278
# Neither blocked nor throttled?
279279
return dict(retry=False, wait=0, final=True)
280280

281-
282281
def _handle_response(self, response, uri, method, raw_args, final):
283282
"""Handle the processing of the API's response"""
284283
body = response.read()

dyn/tm/records.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,18 +1239,18 @@ def __repr__(self):
12391239
"""print override"""
12401240
return self.__str__()
12411241

1242+
12421243
class CAARecord(DNSRecord):
12431244
"""Certification Authority Authorization (CAA) Resource Record
12441245
1245-
This record allows a DNS domain name holder to specify one or more
1246-
Certification Authorities (CAs) authorized to issue certificates for that
1247-
domain. CAA Resource Records allow a public Certification Authority to
1248-
implement additional controls to reduce the risk of unintended certificate
1249-
mis-issue. This document defines the syntax of the CAA record and rules for
1250-
processing CAA records by certificate issuers.
1246+
This record allows a DNS domain name holder to specify one or more
1247+
Certification Authorities (CAs) authorized to issue certificates for that
1248+
domain. CAA Resource Records allow a public Certification Authority to
1249+
implement additional controls to reduce the risk of unintended certificate
1250+
mis-issue. This document defines the syntax of the CAA record and rules
1251+
for processing CAA records by certificate issuers.
12511252
1252-
see: https://tools.ietf.org/html/rfc6844
1253-
"""
1253+
see: https://tools.ietf.org/html/rfc6844 """
12541254

12551255
def __init__(self, zone, fqdn, *args, **kwargs):
12561256
"""Create a :class:`~dyn.tm.records.CAARecord` object
@@ -1260,26 +1260,26 @@ def __init__(self, zone, fqdn, *args, **kwargs):
12601260
:param flags: A byte
12611261
:param tag: A string defining the tag component of the <tag>=<value>
12621262
record property. May be one of:
1263-
issue: The issue property entry authorizes the holder of
1264-
the domain name <Issuer Domain Name> or a party acting under
1265-
the explicit authority of the holder of that domain name to
1266-
issue certificates for the domain in which the property is
1267-
published.
1268-
1269-
issuewild: The issuewild property entry authorizes the
1270-
holder of the domain name <Issuer Domain Name> or a party
1271-
acting under the explicit authority of the holder of that
1272-
domain name to issue wildcard certificates for the domain in
1273-
which the property is published.
1274-
1275-
iodef: Specifies a URL to which an issuer MAY report
1276-
certificate issue requests that are inconsistent with the
1277-
issuer's Certification Practices or Certificate Policy, or
1278-
that a Certificate Evaluator may use to report observation
1279-
of a possible policy violation.
1280-
:param value: A string representing the value component of the property.
1281-
This will be an issuer domain name or a URL.
1282-
:param ttl: TTL for this record. Use 0 for zone default
1263+
issue: The issue property entry authorizes the holder of
1264+
the domain name <Issuer Domain Name> or a party acting under
1265+
the explicit authority of the holder of that domain name to
1266+
issue certificates for the domain in which the property is
1267+
published.
1268+
1269+
issuewild: The issuewild property entry authorizes the
1270+
holder of the domain name <Issuer Domain Name> or a party
1271+
acting under the explicit authority of the holder of that
1272+
domain name to issue wildcard certificates for the domain in
1273+
which the property is published.
1274+
1275+
iodef: Specifies a URL to which an issuer MAY report
1276+
certificate issue requests that are inconsistent with the
1277+
issuer's Certification Practices or Certificate Policy, or
1278+
that a Certificate Evaluator may use to report observation
1279+
of a possible policy violation.
1280+
:param value: A string representing the value component of the
1281+
property. This will be an issuer domain name or a URL.
1282+
:param ttl: TTL for this record. Use 0 for zone default
12831283
"""
12841284
fields = ['flags', 'tag', 'value', 'ttl']
12851285

dyn/tm/zones.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -522,24 +522,23 @@ def get_all_records_by_type(self, record_type):
522522
are owned by this node.
523523
524524
:param record_type: The type of :class:`DNSRecord` you wish returned.
525-
Valid record_type arguments are: 'A', 'AAAA', 'CAA', 'CERT', 'CNAME',
526-
'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'KX', 'LOC', 'IPSECKEY',
527-
'MX', 'NAPTR', 'PTR', 'PX', 'NSAP', 'RP', 'NS', 'SOA', 'SPF',
528-
'SRV', and 'TXT'.
525+
Valid record_type arguments are: 'A', 'AAAA', 'CAA', 'CERT',
526+
'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'KX', 'LOC',
527+
'IPSECKEY', 'MX', 'NAPTR', 'PTR', 'PX', 'NSAP', 'RP', 'NS', 'SOA',
528+
'SPF', 'SRV', and 'TXT'.
529529
:return: A :class:`List` of :class:`DNSRecord`'s
530530
"""
531531
names = {'A': 'ARecord', 'AAAA': 'AAAARecord', 'ALIAS': 'ALIASRecord',
532-
'CAA': 'CAARecord', 'CDS': 'CDSRecord', 'CDNSKEY': 'CDNSKEYRecord',
533-
'CERT': 'CERTRecord', 'CSYNC': 'CSYNCRecord',
534-
'CNAME': 'CNAMERecord', 'DHCID': 'DHCIDRecord',
535-
'DNAME': 'DNAMERecord', 'DNSKEY': 'DNSKEYRecord',
536-
'DS': 'DSRecord', 'KEY': 'KEYRecord', 'KX': 'KXRecord',
537-
'LOC': 'LOCRecord', 'IPSECKEY': 'IPSECKEYRecord',
538-
'MX': 'MXRecord', 'NAPTR': 'NAPTRRecord', 'PTR': 'PTRRecord',
539-
'PX': 'PXRecord', 'NSAP': 'NSAPRecord', 'RP': 'RPRecord',
540-
'NS': 'NSRecord', 'SOA': 'SOARecord', 'SPF': 'SPFRecord',
541-
'SRV': 'SRVRecord', 'TLSA': 'TLSARecord', 'TXT': 'TXTRecord',
542-
'SSHFP': 'SSHFPRecord'}
532+
'CAA': 'CAARecord', 'CDS': 'CDSRecord', 'CDNSKEY':
533+
'CDNSKEYRecord', 'CERT': 'CERTRecord', 'CSYNC': 'CSYNCRecord',
534+
'CNAME': 'CNAMERecord', 'DHCID': 'DHCIDRecord', 'DNAME':
535+
'DNAMERecord', 'DNSKEY': 'DNSKEYRecord', 'DS': 'DSRecord',
536+
'KEY': 'KEYRecord', 'KX': 'KXRecord', 'LOC': 'LOCRecord',
537+
'IPSECKEY': 'IPSECKEYRecord', 'MX': 'MXRecord', 'NAPTR':
538+
'NAPTRRecord', 'PTR': 'PTRRecord', 'PX': 'PXRecord', 'NSAP':
539+
'NSAPRecord', 'RP': 'RPRecord', 'NS': 'NSRecord', 'SOA':
540+
'SOARecord', 'SPF': 'SPFRecord', 'SRV': 'SRVRecord', 'TLSA':
541+
'TLSARecord', 'TXT': 'TXTRecord', 'SSHFP': 'SSHFPRecord'}
543542

544543
constructor = RECS[record_type]
545544
uri = '/{}/{}/{}/'.format(names[record_type], self._name, self.fqdn)

0 commit comments

Comments
 (0)