Merge "Add breaks to for loops"

changes/99/23399/1
Jenkins 10 years ago committed by Gerrit Code Review
commit c4248dd0d7
  1. 2
      heat/engine/resources/instance.py

@ -237,6 +237,7 @@ class Instance(resource.Resource):
for o in image_list:
if o.name == image_name:
image_id = o.id
break
if image_id is None:
logger.info("Image %s was not found in glance" % image_name)
@ -247,6 +248,7 @@ class Instance(resource.Resource):
for o in flavor_list:
if o.name == flavor:
flavor_id = o.id
break
if flavor_id is None:
raise exception.FlavorMissing(flavor_id=flavor)

Loading…
Cancel
Save