mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Fixed typed in _data_for_PTR and amended test case to check for it
This commit is contained in:
@@ -352,8 +352,8 @@ class AzureProvider(BaseProvider):
|
||||
|
||||
def _data_for_PTR(self, azrecord):
|
||||
try:
|
||||
ptdrname = azrecord.ptr_records[0].ptdrname
|
||||
return {'value': _check_endswith_dot(ptdrname)}
|
||||
ptrdname = azrecord.ptr_records[0].ptrdname
|
||||
return {'value': _check_endswith_dot(ptrdname)}
|
||||
except:
|
||||
return {'value': '.'}
|
||||
|
||||
|
||||
@@ -263,8 +263,7 @@ class TestAzureDnsProvider(TestCase):
|
||||
rs.append(RecordSet(name='ptr1', ttl=10, type='PTR',
|
||||
ptr_records=[PtrRecord('ptr1.unit.test.')]))
|
||||
rs.append(RecordSet(name='ptr2', ttl=11, type='PTR',
|
||||
ptr_records=[PtrRecord('ptr1.unit.test.'),
|
||||
PtrRecord('ptr2.unit.test.')]))
|
||||
ptr_records=[PtrRecord(None)]))
|
||||
rs.append(RecordSet(name='_srv1._tcp', ttl=12, type='SRV',
|
||||
srv_records=[SrvRecord(1, 2, 3, '1unit.tests.')]))
|
||||
rs.append(RecordSet(name='_srv2._tcp', ttl=13, type='SRV',
|
||||
|
||||
Reference in New Issue
Block a user