Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Buddenberg
gcis-py-client
Commits
420bf19f
Commit
420bf19f
authored
Nov 03, 2015
by
abuddenberg
Browse files
Fix get_credentials() impl for incorrect Gcis.conf file format
parent
33b8d85d
Changes
1
Show whitespace changes
Inline
Side-by-side
gcis_clients/gcis_client.py
View file @
420bf19f
...
...
@@ -59,7 +59,7 @@ def get_credentials(url):
all_creds
=
yaml
.
load
(
open
(
gcis_config
,
'r'
))
instance_creds
=
[
c
for
c
in
all_creds
if
c
[
'url'
]
==
url
][
0
]
return
instance_creds
[
'userinfo'
].
split
(
':'
)
[
0
],
instance_creds
[
'key'
]
return
instance_creds
[
'userinfo'
].
split
(
':'
)
#Else prompt for credentials
#Wow, I managed to use it
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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