Skip to content

Commit b4d759e

Browse files
committed
show user id in command result
1 parent 932dc2c commit b4d759e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

os_vm_expire/cmd/expire_manage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def list(self, instanceid=None):
6868
'expire',
6969
'instance.name',
7070
'instance.id',
71-
'project.id'
71+
'project.id',
72+
'user.id'
7273
]
7374
pt = prettytable.PrettyTable(headers)
7475
for instance in res:
@@ -78,7 +79,8 @@ def list(self, instanceid=None):
7879
datetime.datetime.fromtimestamp(instance.expire),
7980
instance.instance_name,
8081
instance.instance_id,
81-
instance.project_id
82+
instance.project_id,
83+
instance.user_id
8284
]
8385
)
8486
if six.PY3:

0 commit comments

Comments
 (0)