From b9969a9b54e738279f394c580f06b166e860c74f Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 24 Jan 2017 17:16:18 +0100 Subject: [PATCH] Fix minor bug in openmano client with subcommand vim-image-list Change-Id: I2820cda1ce01f00e2c2d52d0be251d76ba16c223 Signed-off-by: garciadeblas --- openmano | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmano b/openmano index fc60035b..50277100 100755 --- a/openmano +++ b/openmano @@ -127,14 +127,14 @@ def _print_verbose(mano_response, verbose_level=0): uuid = content['id'] elif "vim_id" in content: uuid = content['vim_id'] - myoutput = "%s %s" %(uuid.ljust(38),content['name'].ljust(20)) + myoutput = "%s %s" %(uuid.ljust(38),content.get('name',"").ljust(20)) if "status" in content: myoutput += " " + content['status'].ljust(20) elif "enabled" in content and not content["enabled"]: myoutput += " enabled=False".ljust(20) if verbose_level >=1: if 'created_at' in content: - myoutput += " " + content['created_at'].ljust(20) + myoutput += " " + content.get('created_at',"").ljust(20) if verbose_level >=2: new_line='\n' if 'type' in content and content['type']!=None: -- 2.25.1