Commit e673d189 authored by Stratos Psomadakis's avatar Stratos Psomadakis Committed by Christos Stavrakakis
Browse files

Fix regressions in snf-manage list commands

parent f5a2848f
......@@ -43,6 +43,8 @@ log = getLogger(__name__)
class Command(ListCommand):
help = "List networks"
option_list = ListCommand.option_list + (
make_option(
'--public',
......
......@@ -120,7 +120,8 @@ class Command(ListCommand):
self.filters["operstate"] = "BUILD"
if options["image_name"]:
self.fields.replace("image.id", "image.name")
self.fields = ["id", "name", "user.uuid", "state", "flavor",
"image.name", "backend"]
def handle_db_objects(self, rows, *args, **kwargs):
icache = ImageCache()
......
......@@ -99,7 +99,7 @@ class UserCache(object):
if not name in self.users:
try:
self.users[name] = \
self.astakos.service.get_uuid(
self.astakos.service_get_uuid(
self.astakos_token, name)
except:
self.users[name] = name
......@@ -112,7 +112,7 @@ class UserCache(object):
if not uuid in self.users:
try:
self.users[uuid] = \
self.astakos.get_username(
self.astakos.service_get_username(
self.astakos_token, uuid)
except:
self.users[uuid] = "-"
......
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