MCPcopy Create free account
hub / github.com/adobe/Marinus / is_tracked_zone

Function is_tracked_zone

python3_cron_scripts/sonar_round_two.py:50–57  ·  view source on GitHub ↗

Does the CNAME belong to a tracked zone?

(cname, zones)

Source from the content-addressed store, hash-verified

48
49
50def is_tracked_zone(cname, zones):
51 """
52 Does the CNAME belong to a tracked zone?
53 """
54 for zone in zones:
55 if cname.endswith("." + zone) or cname == zone:
56 return True
57 return False
58
59
60def lookup_hostname(logger, host, zones, round_three):

Callers 2

lookup_hostnameFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected