From 9cdadd6be32877f088455074101483194b1f5bf8 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 19 Jun 2024 10:58:48 +0200 Subject: [PATCH] Fix bug 2373 - Remove old code from v1 client in ns_show Change-Id: I4cfe351acc7c0ce092236f8f55cd369063b69181 Signed-off-by: garciadeblas --- osmclient/cli_commands/ns.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/osmclient/cli_commands/ns.py b/osmclient/cli_commands/ns.py index 80961d5..a21c492 100755 --- a/osmclient/cli_commands/ns.py +++ b/osmclient/cli_commands/ns.py @@ -307,11 +307,6 @@ def ns_show(ctx, name, literal, filter, output): if not filter or k in filter: table.add_row([k, utils.wrap_text(text=json.dumps(v, indent=2), width=100)]) - nsopdata = ctx.obj.ns.get_opdata(ns["id"]) - nsr_optdata = nsopdata["nsr:nsr"] - for k, v in list(nsr_optdata.items()): - if not filter or k in filter: - table.add_row([k, utils.wrap_text(json.dumps(v, indent=2), width=100)]) print_output.print_output(output, table.field_names, table._rows) -- 2.25.1