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
5d67fa45
Commit
5d67fa45
authored
Apr 02, 2012
by
Giorgos Verigakis
Browse files
Fallback to displaying the image id if it can not resolve it
parent
d00beb11
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/management/commands/listservers.py
View file @
5d67fa45
...
...
@@ -75,7 +75,10 @@ class Command(BaseCommand):
for
server
in
servers
:
id
=
str
(
server
.
id
)
flavor
=
server
.
flavor
.
name
image
=
get_image
(
server
.
imageid
,
server
.
userid
)[
'name'
]
try
:
image
=
get_image
(
server
.
imageid
,
server
.
userid
)[
'name'
]
except
:
image
=
server
.
imageid
fields
=
(
id
,
server
.
name
,
server
.
userid
,
flavor
,
image
,
server
.
operstate
)
...
...
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