Allow ns-op.detail to be None 69/8669/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 9 Mar 2020 14:46:50 +0000 (14:46 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 9 Mar 2020 14:46:50 +0000 (14:46 +0000)
Change-Id: I1af0d1aba38c5418f54bf6b9e6aa8ddfea1ea8bf
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osmclient/scripts/osm.py

index 1461760..62be7f7 100755 (executable)
@@ -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)