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

Function is_tracked_zone

python3_cron_scripts/extract_vt_names.py:42–49  ·  view source on GitHub ↗

Is the root domain for the provided cname one of the known domains?

(cname, zones)

Source from the content-addressed store, hash-verified

40
41
42def is_tracked_zone(cname, zones):
43 """
44 Is the root domain for the provided cname one of the known domains?
45 """
46 for zone in zones:
47 if cname.endswith("." + zone) or cname == zone:
48 return True
49 return False
50
51
52def get_tracked_zone(name, zones):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected