]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
engine : perform periodic tasks with stored stack_context
authorSteven Hardy <shardy@redhat.com>
Tue, 2 Jul 2013 13:17:30 +0000 (14:17 +0100)
committerSteven Hardy <shardy@redhat.com>
Tue, 2 Jul 2013 13:17:30 +0000 (14:17 +0100)
The metadata update needs to be performed with the stored stack_context,
not the admin_context, which contains no credentials to e.g authenticate
with nova

Fixes bug #1196618

Change-Id: I0451604535a731de5ad57d2d52cdf183e58cf7b0

heat/engine/service.py

index b8524e4dc9028c086c481b7a00998ee5ff474cfe..5abb939f13e2f94bfde3152d138397c12ce95a83 100644 (file)
@@ -566,7 +566,7 @@ class EngineService(service.Service):
             for action in actions:
                 action()
 
-            stk = parser.Stack.load(admin_context, stack=stack)
+            stk = parser.Stack.load(stack_context, stack=stack)
             for res in stk:
                 res.metadata_update()