Skip to content

Commit 8281ca8

Browse files
committed
Handled no app returned scenario
1 parent adcb1f2 commit 8281ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agcs-resources-scripts/connected_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_instance_app_ocid(ag_si_name):
1515
app_search_response = response.data.resources[0]
1616
return app_search_response.ocid
1717
else:
18-
return "NO APPS RETURNED!!!"
18+
raise ValueError("SI_"+ag_si_name+"_DOES_NOT_EXIST")
1919

2020

2121
def get_app_details(ag_si_name):

0 commit comments

Comments
 (0)