Commit 5d67fa45 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Fallback to displaying the image id if it can not resolve it

parent d00beb11
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment