From: tierno Date: Mon, 9 Mar 2020 14:46:50 +0000 (+0000) Subject: Allow ns-op.detail to be None X-Git-Tag: v7.1.0rc1^2~16 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d0f8d1ce9d342229290b3fd255915853a18bc5a0;p=osm%2Fosmclient.git Allow ns-op.detail to be None Change-Id: I1af0d1aba38c5418f54bf6b9e6aa8ddfea1ea8bf Signed-off-by: tierno --- diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 1461760..62be7f7 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -731,7 +731,7 @@ def ns_op_list(ctx, name, long): wrap_text(text=detail,width=50)]) else: table.add_row([op['id'], op['lcmOperationType'], action_name, - op['operationState'], date, wrap_text(text=detail,width=50)]) + op['operationState'], date, wrap_text(text=detail or "",width=50)]) table.align = 'l' print(table)