If the flavor_id not in full_flavors, don't make a new API request
Flavors are cached from api.nova.flavor_list(), therefore if we have
machine for which flavor is not in the obtained list, it means the
machine has been created using flavor which is not available anymore.
Additional API calls are just decreasing the performance.
Reviewed: https:/ /review. openstack. org/418409 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=46c4c3d4f99 3e793d32de65f0c c99ad2b00a2cf1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 46c4c3d4f993e79 3d32de65f0cc99a d2b00a2cf1
Author: Mateusz Kowalski <email address hidden>
Date: Tue Jan 10 10:10:08 2017 +0100
If the flavor_id not in full_flavors, don't make a new API request
Flavors are cached from api.nova. flavor_ list(), therefore if we have
machine for which flavor is not in the obtained list, it means the
machine has been created using flavor which is not available anymore.
Additional API calls are just decreasing the performance.
Change-Id: I190ae0bd70fc19 a9d2d402a808f46 5c23c842fa7
Closes-bug: #1655300