From: Pedro Escaleira Date: Wed, 13 Jul 2022 11:23:17 +0000 (+0100) Subject: Bug 2116 fixed: obtaining the queuePosition key using the get method X-Git-Tag: release-v13.0-start~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=55d761f76934a69d22b75b633cc50c73f4651fda;hp=b475e068da9d4642737101977f010958bd151f5e;p=osm%2Fosmclient.git Bug 2116 fixed: obtaining the queuePosition key using the get method Change-Id: I53c63960be41a897d093f948d4cc5e377c80389f Signed-off-by: Pedro Escaleira --- diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 397d932..f68fb0c 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -1014,7 +1014,7 @@ def ns_op_list(ctx, name, long): action_name = op["operationParams"]["primitive"] detail = "-" if op["operationState"] == "PROCESSING": - if op["queuePosition"] is not None and op["queuePosition"] > 0: + if op.get("queuePosition") is not None and op.get("queuePosition") > 0: detail = "In queue. Current position: {}".format(op["queuePosition"]) elif op["lcmOperationType"] in ("instantiate", "terminate"): if op["stage"]: