Skip to content

Commit

Permalink
When app-inspect check was false it was still expecting splunkbase cred.
Browse files Browse the repository at this point in the history
  • Loading branch information
VatsalJagani committed Nov 9, 2022
1 parent 9bba575 commit dd64a89
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@

# Read Credentials
username = utils.get_input('splunkbase_username')
if not username:
utils.error("splunkbase_username input is not provided.")
sys.exit(1)

password = utils.get_input('splunkbase_password')
if not password:
utils.error("splunkbase_password input is not provided.")
sys.exit(1)


# Read App Build Name
Expand Down Expand Up @@ -215,6 +208,15 @@ def perform_ssai_inspect_check(app_inspect_result):
def run_app_inspect_checks():
utils.info("Started app_inspect.py")

if not username:
utils.error("splunkbase_username input is not provided.")
sys.exit(1)

if not password:
utils.error("splunkbase_password input is not provided.")
sys.exit(1)


api_login()

thread_app_inspect = Thread(target=perform_app_inspect_check, args=(app_inspect_result,))
Expand Down

0 comments on commit dd64a89

Please sign in to comment.