Merge pull request #54 from github/ns1-no-sshfp

NS1 does not support SSHFP
This commit is contained in:
Ross McFarland
2017-06-04 14:09:43 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -30,6 +30,9 @@ class Ns1Provider(BaseProvider):
super(Ns1Provider, self).__init__(id, *args, **kwargs)
self._client = NSONE(apiKey=api_key)
def supports(self, record):
return record._type != 'SSHFP'
def _data_for_A(self, _type, record):
return {
'ttl': record['ttl'],
+1 -1
View File
@@ -199,4 +199,4 @@ class TestDnsimpleProvider(TestCase):
call('DELETE', '/zones/unit.tests/records/11189899'),
call('DELETE', '/zones/unit.tests/records/11189897'),
call('DELETE', '/zones/unit.tests/records/11189898')
])
], any_order=True)