Skip to content

Commit 371b049

Browse files
authored
Merge pull request #14
Handled No apps returned scenario
2 parents 82adfa1 + 8281ca8 commit 371b049

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)