diff options
author | Nikolay Zamotaev <nzamotaev@luxoft.com> | 2020-01-31 19:56:06 +0300 |
---|---|---|
committer | Nikolay Zamotaev <nzamotaev@luxoft.com> | 2020-02-14 14:07:05 +0000 |
commit | 9c45aeb3aafe236093b96021d5c6b170f9c4b126 (patch) | |
tree | 78aecccd997a206329ffc65f408f8a51cc30b3ca /store/api.py | |
parent | 647a3b6e0dbfce90ac24712c19ae0a4bfa596103 (diff) |
Support for reporting wrong architecture in /hello status
Task-number: AUTOSUITE-1438
Change-Id: Id02885b829c21641da456f99e054541b09cf964e
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
(cherry picked from commit a095cc3470c473f123c032f3fcfc599e006dad40)
Reviewed-by: Nikolay Zamotaev <nzamotaev@luxoft.com>
Diffstat (limited to 'store/api.py')
-rw-r--r-- | store/api.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/store/api.py b/store/api.py index de975dd..09b6550 100644 --- a/store/api.py +++ b/store/api.py @@ -65,7 +65,10 @@ def hello(request): break request.session[j] = str(versionmap) if 'architecture' in getRequestDictionary(request): - request.session['architecture'] = normalizeArch(getRequestDictionary(request)['architecture']) + arch = normalizeArch(getRequestDictionary(request)['architecture']) + if arch == "": + status = 'incompatible-architecture' + request.session['architecture'] = arch else: request.session['architecture'] = '' return JsonResponse({'status': status}) |