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

Function get_fld_from_value

python3_cron_scripts/get_external_cnames.py:98–106  ·  view source on GitHub ↗

Get the First Level Domain (FLD) for the provided value

(value, zone)

Source from the content-addressed store, hash-verified

96
97
98def get_fld_from_value(value, zone):
99 """
100 Get the First Level Domain (FLD) for the provided value
101 """
102 res = get_fld(value, fix_protocol=True, fail_silently=True)
103 if res is None:
104 return zone
105
106 return res
107
108
109def main(logger=None):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected