1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Merge branch 'master' into alias-support

This commit is contained in:
Ross McFarland
2017-06-04 14:18:47 -07:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -334,8 +334,8 @@ class DnsimpleProvider(BaseProvider):
self._client.record_create(new.zone.name[:-1], params)
def _apply_Update(self, change):
self._apply_Create(change)
self._apply_Delete(change)
self._apply_Create(change)
def _apply_Delete(self, change):
existing = change.existing

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'],

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)