aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/resources/test_handlers.py
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-09-25 20:59:42 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-10-19 22:19:56 +0530
commit29ca1f2d2c0127e8bc05270d126b98bfa06fe58e (patch)
treeedbaf5aa1003f43679f441ae992aaaf223da4e02 /opnfv_testapi/resources/test_handlers.py
parent104b5565fca364c687e98ff8433f04c161398217 (diff)
updated code alignment
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I67213176adffdd328513556cca4298a9b2642f10
Diffstat (limited to 'opnfv_testapi/resources/test_handlers.py')
-rw-r--r--opnfv_testapi/resources/test_handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opnfv_testapi/resources/test_handlers.py b/opnfv_testapi/resources/test_handlers.py
index bded472..1dbc4cd 100644
--- a/opnfv_testapi/resources/test_handlers.py
+++ b/opnfv_testapi/resources/test_handlers.py
@@ -446,7 +446,7 @@ class TestsUploadDataHandler(GenericTestHandler):
if openid:
self.json_args['owner'] = openid
input_token = self.request.headers._dict['Token']
- if not input_token or not input_token == token:
+ if not token or not input_token == token:
raises.Unauthorized(message.invalid_token())
self._post()