]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat engine Add admin flag to dbapi stack_get
authorSteven Hardy <shardy@redhat.com>
Wed, 21 Nov 2012 11:31:14 +0000 (11:31 +0000)
committerSteven Hardy <shardy@redhat.com>
Wed, 21 Nov 2012 11:31:14 +0000 (11:31 +0000)
commitee9e31fb1fd502ed0ddee74d6f41b65a7e6ecf91
tree73af2e9763ea5b72b17d18eb48285d5d24bf7c8d
parent66ef27527d7765c2d6b3898a11425c58ec69911c
heat engine Add admin flag to dbapi stack_get

Add a flag to the stack_get dbapi call, defaulted to False,
which allows us to specify that the admin context is being used
hence we don't want tenant-scoping condition applied.
This is needed to allow the admin context to retrieve stored
credentials per-stack (e.g for the periodic per-stack tasks)

Change-Id: I55e307b7940f7da13bd169271744e80d95ea0bd9
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/db/api.py
heat/db/sqlalchemy/api.py