From: garciadeblas Date: Wed, 19 Jun 2024 08:58:48 +0000 (+0200) Subject: Fix bug 2373 - Remove old code from v1 client in ns_show X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fv15.0;p=osm%2Fosmclient.git Fix bug 2373 - Remove old code from v1 client in ns_show Change-Id: I4cfe351acc7c0ce092236f8f55cd369063b69181 Signed-off-by: garciadeblas --- 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)