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

Function add_to_list

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

This will add a string to the GROUPS array if it does not exist. It will then return the index of the string within the Array

(str_to_add, groups)

Source from the content-addressed store, hash-verified

40
41
42def add_to_list(str_to_add, groups):
43 """
44 This will add a string to the GROUPS array if it does not exist.
45 It will then return the index of the string within the Array
46 """
47 if str_to_add.replace(".", REPLACE_CHAR) not in groups:
48 groups.append(str_to_add.replace(".", REPLACE_CHAR))
49 return groups.index(str_to_add.replace(".", REPLACE_CHAR))
50
51
52def is_aws_domain(domain):

Callers 3

find_all_dns_by_zoneFunction · 0.70
find_srdns_by_zoneFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected