Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
d4b839e4
Commit
d4b839e4
authored
Apr 03, 2014
by
Alex Pyrgiotis
Committed by
Buildbot
Apr 17, 2014
Browse files
ci: Handle Images with many users
Choose from the user list of an Image the first user as the admin user.
parent
4bf0477b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ci/utils.py
View file @
d4b839e4
...
...
@@ -345,7 +345,10 @@ class SynnefoCI(object):
server_id
=
server
[
'id'
]
self
.
write_temp_config
(
'server_id'
,
server_id
)
self
.
logger
.
debug
(
"Server got id %s"
%
_green
(
server_id
))
server_user
=
server
[
'metadata'
][
'users'
]
# An image may have more than one user. Choose the first one.
server_user
=
server
[
'metadata'
][
'users'
].
split
(
" "
)[
0
]
self
.
write_temp_config
(
'server_user'
,
server_user
)
self
.
logger
.
debug
(
"Server's admin user is %s"
%
_green
(
server_user
))
server_passwd
=
server
[
'adminPass'
]
...
...
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