diff options
author | Mariusz Wagner <mariusz.wagner@nokia.com> | 2019-04-05 12:46:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-05 12:46:51 +0000 |
commit | f5c3d1568a1a46d7ab6ca8d57d9182fc761c5158 (patch) | |
tree | ea31e89e5464104db4a800b070090500956da2be | |
parent | 5e67a3fcc3bb10723202cd95ab9379b29290f79d (diff) | |
parent | b3c4856c8f21d32593a05386d4f3e626e14ffb52 (diff) |
Merge "Fix extracting PNF name"
-rw-r--r-- | tests/dcaegen2/prh-testcases/resources/PrhLibrary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py index 6667bd78..0dd01dcb 100644 --- a/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py +++ b/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py @@ -91,7 +91,7 @@ class PrhLibrary(object): @staticmethod def create_pnf_name(json_file): json_to_python = json.loads(json_file) - correlation_id = json_to_python.get("sourceName") + correlation_id = json_to_python.get("event").get("commonEventHeader").get("sourceName") + '",' if "sourceName" in json_to_python["event"]["commonEventHeader"] else '",' return correlation_id @staticmethod |