Revision 8814e07c snf-cyclades-app/synnefo/api/management/commands/server-show.py
b/snf-cyclades-app/synnefo/api/management/commands/server-show.py | ||
---|---|---|
34 | 34 |
from django.core.management.base import BaseCommand, CommandError |
35 | 35 |
from synnefo.management.common import (format_bool, format_date, |
36 | 36 |
format_vm_state, get_vm, |
37 |
get_image) |
|
37 |
get_image, UUIDCache)
|
|
38 | 38 |
|
39 | 39 |
|
40 | 40 |
class Command(BaseCommand): |
... | ... | |
60 | 60 |
kv = { |
61 | 61 |
'id': server.id, |
62 | 62 |
'name': server.name, |
63 |
'owner': userid, |
|
63 |
'owner_uuid': userid, |
|
64 |
'owner_name': UUIDCache().get_user(userid), |
|
64 | 65 |
'created': format_date(server.created), |
65 | 66 |
'updated': format_date(server.updated), |
66 | 67 |
'image': image, |
Also available in: Unified diff