[api]Duplicated checking environment code
Bug #1479570 reported by
Lei Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Lei Zhang |
Bug Description
We have many duplicated code doing same checking environment job in api, in utils.py file there are general functions aimed to do this, refactor code to use common functions.
Also API returns 401 instead of 403 on these checks.
Changed in murano: | |
assignee: | nobody → Lei Zhang (lei-a-zhang) |
Changed in murano: | |
status: | New → In Progress |
description: | updated |
tags: | added: api |
Changed in murano: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in murano: | |
importance: | Undecided → High |
Changed in murano: | |
milestone: | liberty-2 → 1.0.0 |
Changed in murano: | |
milestone: | 1.0.0 → 1.0.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/206084 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=f7dc6cb0a5c ff30bd819e47db8 d0ad5ab631d4a3
Committed: https:/
Submitter: Jenkins
Branch: master
commit f7dc6cb0a5cff30 bd819e47db8d0ad 5ab631d4a3
Author: leizhang <email address hidden>
Date: Mon Jul 27 07:01:34 2015 -0700
Remove duplicated check env code
Remove duplicated check environment code, use verify_env decorator or
check_env from utils. Note that tenant checks now return 403 instead
of 401.
Closes-Bug: #1479570 133ab0559542f0c 5dafd56e9a6
Change-Id: I1964a9933394df