From d0f8d1ce9d342229290b3fd255915853a18bc5a0 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 9 Mar 2020 14:46:50 +0000 Subject: [PATCH] Allow ns-op.detail to be None Change-Id: I1af0d1aba38c5418f54bf6b9e6aa8ddfea1ea8bf Signed-off-by: tierno --- osmclient/scripts/osm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.17.1