1
0
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:
Ross McFarland
2021-07-01 17:19:03 -07:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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