diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 16:16:17 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 16:16:46 +0800 |
commit | d400185fe6d3738e9b30f7cffc150a425761a25b (patch) | |
tree | 47635fb4af72050b4f63f1e548aa5e1ad2eccad4 | |
parent | 802e76b8013e12d765882814843aa5bd367749c1 (diff) |
fix gvnfm middleware
Change-Id: I9a1574d8f37bf1a3958ab4160e53a96f71b0520c
Issue-ID: VFC-1322
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r-- | gvnfmadapter/driver/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gvnfmadapter/driver/middleware.py b/gvnfmadapter/driver/middleware.py index 707589a..a4def17 100644 --- a/gvnfmadapter/driver/middleware.py +++ b/gvnfmadapter/driver/middleware.py @@ -41,10 +41,10 @@ class LogContextMiddleware(object): def process_request(self, request): # Fetch TRANSACTIONID Id and pass to plugin server - ReqeustID = request.META.get("HTTP_X_TRANSACTIONID", None) + ReqeustID = request.META.get("HTTP_X_ONAP-RequestID", None) if ReqeustID is None: ReqeustID = uuid.uuid3(uuid.NAMESPACE_URL, SERVICE_NAME) - request.META["HTTP_X_TRANSACTIONID"] = ReqeustID + request.META["HTTP_X_ONAP-RequestID"] = ReqeustID MDC.put("requestID", ReqeustID) # generate the unique id InovocationID = uuid.uuid3(uuid.NAMESPACE_DNS, SERVICE_NAME) |