Commit 7eb4d8ef authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix --image-name option in server-list

parent e673d189
......@@ -120,8 +120,8 @@ class Command(ListCommand):
self.filters["operstate"] = "BUILD"
if options["image_name"]:
self.fields = ["id", "name", "user.uuid", "state", "flavor",
"image.name", "backend"]
self.fields = ["image.name" if x == "image.id" else x
for x in self.fields]
def handle_db_objects(self, rows, *args, **kwargs):
icache = ImageCache()
......
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