mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge pull request #737 from meghashyamps/ignore-non-octo-managed-monitors
skip monitors that are not managed by OctoDNS
This commit is contained in:
@@ -849,6 +849,8 @@ class Ns1Provider(BaseProvider):
|
||||
|
||||
for monitor in self._client.monitors.values():
|
||||
data = self._parse_notes(monitor['notes'])
|
||||
if not data:
|
||||
continue
|
||||
if expected_host == data['host'] and \
|
||||
expected_type == data['type']:
|
||||
# This monitor does not belong to this record
|
||||
|
||||
@@ -659,6 +659,18 @@ class TestNs1ProviderDynamic(TestCase):
|
||||
},
|
||||
'four': monitor_four,
|
||||
'five': monitor_five,
|
||||
'six': {
|
||||
'config': {
|
||||
'host': '10.10.10.10',
|
||||
},
|
||||
'notes': 'non-conforming notes',
|
||||
},
|
||||
'seven': {
|
||||
'config': {
|
||||
'host': '11.11.11.11',
|
||||
},
|
||||
'notes': None,
|
||||
},
|
||||
}
|
||||
|
||||
# Would match, but won't get there b/c it's not dynamic
|
||||
|
||||
Reference in New Issue
Block a user