Fix freezer client-* output

What's new:
* while running client-list and client-show, uuid is getting none
  modified the code to get correct uuid.

Change-Id: I629cdb1bb4bbabdd7e74b86f949cec44fb40e984
Closes-Bug: #1676264
This commit is contained in:
Sravan Kumar Dommaraju 2017-03-24 01:56:26 +05:30
parent d460e39c5b
commit 9a79f84108

View File

@ -47,7 +47,7 @@ class ClientShow(show.ShowOne):
)
data = (
client.get('client', {}).get('client_id'),
client.get('uuid'),
client.get('client', {}).get('uuid'),
client.get('client', {}).get('hostname'),
client.get('client', {}).get('description', '')
)
@ -96,7 +96,7 @@ class ClientList(lister.Lister):
columns = ('Client ID', 'uuid', 'hostname', 'description')
data = ((
client.get('client', {}).get('client_id', ''),
client.get('uuid', ''),
client.get('client', {}).get('uuid', ''),
client.get('client', {}).get('hostname', ''),
client.get('client', {}).get('description', '')
) for client in clients)