X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fextract_sdnc_reply.py;h=5e37aa22ff4290d9f1d3dc965a95b6985768dc4c;hb=HEAD;hp=9158edcb601a813fa14d0d5271727069a854a324;hpb=70e878f1b5a558baaaa5ab5885a039ed96c9f8d5;p=nonrtric.git diff --git a/test/common/extract_sdnc_reply.py b/test/common/extract_sdnc_reply.py index 9158edcb..5e37aa22 100644 --- a/test/common/extract_sdnc_reply.py +++ b/test/common/extract_sdnc_reply.py @@ -20,12 +20,12 @@ import json import sys # Extract the response code and optional response message body from and SDNC A1 Controller API reply - +# Args: try: - with open(sys.argv[1]) as json_file: + with open(sys.argv[2]) as json_file: reply = json.load(json_file) - output=reply['output'] + output=reply[sys.argv[1]] status=str(output['http-status']) while(len(status) < 3): status="0"+status