Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
0ddeba2e
Commit
0ddeba2e
authored
Jan 22, 2020
by
Markus Scheidgen
Browse files
Minor fixes.
parent
e6a9ee62
Pipeline
#67526
passed with stages
in 14 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/cli/client/client.py
View file @
0ddeba2e
...
...
@@ -54,7 +54,7 @@ def __create_client(
if
user
is
not
None
:
http_client
.
set_basic_auth
(
host
,
user
,
password
)
if
use_token
:
token
=
client
.
auth
.
get_auth
().
reponse
().
result
.
access_token
token
=
client
.
auth
.
get_auth
().
re
s
ponse
().
result
.
access_token
http_client
.
set_api_key
(
host
,
'Bearer %s'
%
token
,
param_name
=
'Authorization'
,
param_in
=
'header'
)
utils
.
get_logger
(
__name__
).
info
(
'set bravado client authentication'
,
user
=
user
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment