aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/utils.py
diff options
context:
space:
mode:
authorJustin Choquette <jchoquette@iol.unh.edu>2023-08-08 11:33:57 -0400
committerJustin Choquette <jchoquette@iol.unh.edu>2023-08-18 11:59:01 -0400
commitecadb07367d31c0929212618e120130f54af78da (patch)
treef626ef347f6fa7cb7f9ee962539a5f769bc3d471 /src/api/utils.py
parenta6168306c08e8d5b207b9acc48869180d194ff01 (diff)
MVP
Change-Id: Ib590302f49e7e66f8d04841fb6cb97baf623f51a Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
Diffstat (limited to 'src/api/utils.py')
-rw-r--r--src/api/utils.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/api/utils.py b/src/api/utils.py
index c32205e..d6aa68a 100644
--- a/src/api/utils.py
+++ b/src/api/utils.py
@@ -96,7 +96,8 @@ def get_booking_prereqs_validator(user_profile):
return {
"form": None,
"exists": "false",
- "action": "no user"
+ "action": "no user",
+ "result": 0
}
if (not "ou" in ipa_user) or (ipa_user["ou"] == ""):
@@ -104,7 +105,8 @@ def get_booking_prereqs_validator(user_profile):
return {
"form": SetCompanyForm(),
"exists": "true",
- "action": "/api/ipa/workflow-company"
+ "action": "/api/ipa/workflow-company",
+ "result": 1
}
if (not "ipasshpubkey" in ipa_user) or (ipa_user["ipasshpubkey"] == []):
@@ -112,11 +114,13 @@ def get_booking_prereqs_validator(user_profile):
return {
"form": SetSSHForm(),
"exists": "true",
- "action": "/api/ipa/workflow-ssh"
+ "action": "/api/ipa/workflow-ssh",
+ "result": 2,
}
return {
"form": None,
"exists": "false",
- "action": ""
+ "action": "",
+ "result": -1
} \ No newline at end of file