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

Function is_tracked_zone

python3_cron_scripts/extract_ssl_names.py:51–59  ·  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

49
50
51def is_tracked_zone(cname, zones):
52 """
53 Is the root domain for the provided cname one of the known domains?
54 """
55
56 for zone in zones:
57 if cname.endswith("." + zone) or cname == zone:
58 return True
59 return False
60
61
62def get_tracked_zone(name, zones):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected