diff options
author | Dan Timoney <dtimoney@att.com> | 2021-10-22 11:12:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-10-22 11:12:50 +0000 |
commit | 8f6e2ed4641f4f9f0d38c810883f12c230d764a1 (patch) | |
tree | a8bd9501c434d38e1837c90ba91838984ab3e6b2 /ms/command-executor/src/main/python/utils.py | |
parent | 64ab1beff4ebcb8a52ae50613bb2abb147a22799 (diff) | |
parent | 7a697663603a0d3a955076b1a36ce674e62d3ab7 (diff) |
Merge "Add missing code for Metrics and PV/PVC elimination"
Diffstat (limited to 'ms/command-executor/src/main/python/utils.py')
-rw-r--r-- | ms/command-executor/src/main/python/utils.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ms/command-executor/src/main/python/utils.py b/ms/command-executor/src/main/python/utils.py index e7924a936..d59f8cc47 100644 --- a/ms/command-executor/src/main/python/utils.py +++ b/ms/command-executor/src/main/python/utils.py @@ -26,12 +26,13 @@ RESULTS_LOG_KEY = "results_log" REUPLOAD_CBA_KEY = "reupload_cba" RESPONSE_MAX_SIZE = 4 * 1024 * 1024 # 4Mb - +# part of cba_name/version/uuid path def blueprint_name_version_uuid(request): - blueprint_name = request.identifiers.blueprintName - blueprint_version = request.identifiers.blueprintVersion - blueprint_uuid = request.identifiers.blueprintUUID - return blueprint_name + '/' + blueprint_version + '/' + blueprint_uuid + return get_blueprint_name(request) + '/' + get_blueprint_version(request) + '/' + get_blueprint_uuid(request) + +# return blueprint_name and version part of the path (needed for legacy cmd-exec support +def blueprint_name_version(request): + return get_blueprint_name(request) + '/' + get_blueprint_version(request) def get_blueprint_name(request): return request.identifiers.blueprintName |