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

Function get_tracked_zone

python3_cron_scripts/extract_vt_names.py:52–59  ·  view source on GitHub ↗

What is the tracked zone for the provided hostname?

(name, zones)

Source from the content-addressed store, hash-verified

50
51
52def get_tracked_zone(name, zones):
53 """
54 What is the tracked zone for the provided hostname?
55 """
56 for zone in zones:
57 if name.endswith("." + zone) or name == zone:
58 return zone
59 return None
60
61
62def main(logger=None):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected