Skip to content

Commit 880628e

Browse files
committed
Automation Toolkit Release v2024.2.0
1 parent ed02de9 commit 880628e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cd3_automation_toolkit/setUpOCI.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def show_options(options, quit=False, menu=False, extra=None, index=0):
102102
# Subtract one to account for zero-indexing. The options start at 1
103103
# #return [options[int(choice)-1] for choice in user_input]
104104
try:
105+
for choice in user_input:
106+
if int(choice)-index < 0 :
107+
print("\nInvalid Option.....Exiting!!")
108+
exit(1)
105109
return [options[int(choice)-index] for choice in user_input]
106110
except IndexError as ie:
107111
print("\nInvalid Option.....Exiting!!")

0 commit comments

Comments
 (0)