Ready for liftoff

This commit is contained in:
=
2025-08-28 19:51:08 -04:00
parent 1d83c61998
commit 8bb86f743c
3 changed files with 25 additions and 26 deletions
+4 -4
View File
@@ -94,7 +94,7 @@ def listPolicies(url):
policyids.append(list['groupid'])
choice = input(ct.colorText("Select Policy Group: ", "white"))
choice = int(choice) - 1
return choice, policiesnames
return choice, policiesnames, policyids
def listAllowlists(url):
endpoint = url + '/v1/application'
@@ -116,8 +116,8 @@ def listAllowlists(url):
if choice < 38:
print(ct.colorText("Please only choose an allowlist designed for this use - '38+'","red"))
elif choice >= 38:
choice = int(choice) - 38
return choice, policiesnames
choice = choice - 38
return choice, policiesnames, policyids
#Need else and catch for upper bound
@@ -140,5 +140,5 @@ def listCategories(url):
choice = input(ct.colorText("Select Policy Group: ", "white"))
choice = int(choice) - 1
return choice, policiesnames
return choice, policiesnames, policyids