From 9a79f84108cfdf25435ae67c9fa55c582ed4969d Mon Sep 17 00:00:00 2001 From: Sravan Kumar Dommaraju Date: Fri, 24 Mar 2017 01:56:26 +0530 Subject: [PATCH] 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 --- freezerclient/v1/clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freezerclient/v1/clients.py b/freezerclient/v1/clients.py index 965204c..d380d33 100644 --- a/freezerclient/v1/clients.py +++ b/freezerclient/v1/clients.py @@ -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)