]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
make get_flavor_id to work if input is flavor id
authorVijendar Komalla <vijendar.komalla@RACKSPACE.COM>
Wed, 18 Sep 2013 17:27:33 +0000 (12:27 -0500)
committerVijendar Komalla <vijendar.komalla@RACKSPACE.COM>
Wed, 18 Sep 2013 17:27:37 +0000 (12:27 -0500)
commitb9cc7aba48b720b2714f7c5acca914a8b73d15cb
tree432c51a6290bc2577866e268895bee6b405c7b05
parent4ac9d247d20eb26ae4d7488b84ebeab51c0b46f9
make get_flavor_id to work if input is flavor id

Current implementation of get_flavor_id throws exception if input
value is a flavor id. This method is used in couple of resources
where input flavor could be flavor id. This change is to avoid
throwing exception if the input is flavor id.

Fixes bug #1227255

Change-Id: I11054d5f3a34a7e2afea140f8f37a21cb8eba419
heat/engine/resources/nova_utils.py
heat/tests/test_nova_utils.py