diff --git a/AirlockTools.py b/AirlockTools.py index 19674ac..2d86f1b 100644 --- a/AirlockTools.py +++ b/AirlockTools.py @@ -502,8 +502,7 @@ def menu_prepare_to_enforce(): utils.policyfunctions.addHash(allowlist_child_id, allowlist_childhashlist) ct.locked() - print(repr(processed_paths)) - print(processed_paths) + exit() else: diff --git a/utils/policyfunctions.py b/utils/policyfunctions.py index 232a8bc..2dd5d18 100644 --- a/utils/policyfunctions.py +++ b/utils/policyfunctions.py @@ -20,11 +20,14 @@ import utils.pretty as ct def addHash(policy, hash): print(f"Adding the following hashes to {policy}:") - print(hash) + for p in hash: + print(p) + def addPath(policy, hash): print(f"Adding the following Path Exclusions to {policy}:") - print(hash) + for p in hash: + print(p) def addHashReal(url, allowlistID, hashlist): endpoint = url + '/v1/hash/application/add'