From: garciadeblas Date: Tue, 24 Jan 2017 16:16:18 +0000 (+0100) Subject: Fix minor bug in openmano client with subcommand vim-image-list X-Git-Tag: v1.1.0~15^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=b9969a9b54e738279f394c580f06b166e860c74f Fix minor bug in openmano client with subcommand vim-image-list Change-Id: I2820cda1ce01f00e2c2d52d0be251d76ba16c223 Signed-off-by: garciadeblas --- 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: