Skip to content

Commit

Permalink
+ return code
Browse files Browse the repository at this point in the history
  • Loading branch information
adnejacobsen committed May 23, 2024
1 parent b234763 commit d0d3162
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sumo/wrapper/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ def main():
)
token = sumo.authenticate()

if mode == "silent":
if token is None:
return 1
return 0
else:
if mode != "silent":
if args.print_token:
print(f"TOKEN: {token}")
print(token)

if token is not None:
print("Successfully logged in to Sumo environment: " + env)
else:
print("Failed login to Sumo environment: " + env)

if token is None:
return 1
return 0


if __name__ == "__main__":
main()

0 comments on commit d0d3162

Please sign in to comment.