Skip to content

Commit 4e493c8

Browse files
authored
Merge pull request apache#21 from mesosphere/opendcos
Update conditional for OAuth.
2 parents f49c87e + a3fbafd commit 4e493c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def authenticate_with_username():
106106

107107
def check_and_set_token(dcos_url):
108108
if needs_authentication():
109-
if '--dcos-oauth-token' in arguments:
109+
if arguments['--dcos-oauth-token']:
110110
authenticate_with_oauth(dcos_url)
111111
else:
112112
authenticate_with_username()

0 commit comments

Comments
 (0)