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

Rename Dyn._monitor_matches to _monitor_doesnt_match

This commit is contained in:
Ross McFarland
2018-04-04 07:33:57 -07:00
parent 8330a3a16c
commit a5c560f203

View File

@@ -113,7 +113,7 @@ DSFMonitor.update = _monitor_update
############################################################################### ###############################################################################
def _monitor_matches(monitor, host, path, protocol, port): def _monitor_doesnt_match(monitor, host, path, protocol, port):
return monitor.host != host or monitor.path != path or \ return monitor.host != host or monitor.path != path or \
monitor.protocol != protocol or int(monitor.port) != port monitor.protocol != protocol or int(monitor.port) != port
@@ -507,7 +507,7 @@ class DynProvider(BaseProvider):
label) label)
extra.append(Update(record, record)) extra.append(Update(record, record))
continue continue
if _monitor_matches(monitor, record.healthcheck_host, if _monitor_doesnt_match(monitor, record.healthcheck_host,
record.healthcheck_path, record.healthcheck_path,
record.healthcheck_protocol, record.healthcheck_protocol,
record.healthcheck_port): record.healthcheck_port):
@@ -629,7 +629,7 @@ class DynProvider(BaseProvider):
self.traffic_director_monitors[label] = \ self.traffic_director_monitors[label] = \
self.traffic_director_monitors[fqdn] self.traffic_director_monitors[fqdn]
del self.traffic_director_monitors[fqdn] del self.traffic_director_monitors[fqdn]
if _monitor_matches(monitor, record.healthcheck_host, if _monitor_doesnt_match(monitor, record.healthcheck_host,
record.healthcheck_path, record.healthcheck_path,
record.healthcheck_protocol, record.healthcheck_protocol,
record.healthcheck_port): record.healthcheck_port):