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

Function zone_compare

python3_cron_scripts/zgrab_port_ip.py:212–219  ·  view source on GitHub ↗

Determines whether value is in a known zone

(value, zones)

Source from the content-addressed store, hash-verified

210
211
212def zone_compare(value, zones):
213 """
214 Determines whether value is in a known zone
215 """
216 for zone in zones:
217 if value.endswith("." + zone) or value == zone:
218 return zone
219 return None
220
221
222def check_in_zone(entry, zones):

Callers 2

get_mx_ipsFunction · 0.70
check_in_zoneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected