[api]Duplicated checking environment code

Bug #1479570 reported by Lei Zhang
6
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.

Tags: api
Lei Zhang (lei-a-zhang)
Changed in murano:
assignee: nobody → Lei Zhang (lei-a-zhang)
Changed in murano:
status: New → In Progress
description: updated
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/206084
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=f7dc6cb0a5cff30bd819e47db8d0ad5ab631d4a3
Submitter: Jenkins
Branch: master

commit f7dc6cb0a5cff30bd819e47db8d0ad5ab631d4a3
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
    Change-Id: I1964a9933394df133ab0559542f0c5dafd56e9a6

Changed in murano:
status: In Progress → Fix Committed
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.