Path prep prepared

This commit is contained in:
=
2025-09-03 19:33:04 -04:00
parent a36fc19efd
commit 73811ba4d2
2 changed files with 6 additions and 4 deletions
+1 -2
View File
@@ -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:
+5 -2
View File
@@ -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'