Merge "Update some cases of iterating stack resources"

This commit is contained in:
Jenkins
2013-10-08 21:46:24 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class Restarter(signal_responder.SignalResponder):
Return the resource with the specified instance ID, or None if it
cannot be found.
'''
for resource in self.stack:
for resource in self.stack.itervalues():
if resource.resource_id == resource_id:
return resource
return None

View File

@@ -712,7 +712,7 @@ class EngineService(service.Service):
action(details=details)
stk = parser.Stack.load(stack_context, stack=stack)
for res in stk:
for res in stk.itervalues():
res.metadata_update()
for wr in wrs: