Merge "Update some cases of iterating stack resources"
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user