1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix get_flavor_id() when flavor_ram is specified

Without this fix, _get_flavor_id() fails to find a matching flavor if
both:
* the flavor_ram parameter is specified
* the first flavor in the list does not match.

The bug is simply that the module.fail_json() call lies within the loop
iterating through the flavors.  This call should only be made if the
loop completes and no matching flavors have been found.
This commit is contained in:
John Batty 2014-11-13 13:26:20 +00:00 committed by Matt Clay
parent 5d16410518
commit dd78dde449