Fix non-API bound filters in project and admin instance panels
Filters like "image_name", "flavor_name" and "project" in instance
panels are keys not supported in Nova List-Servers API directly, so they
should be converted to "image", "flavor" and "project_id", respectively,
before Horizon calling Nova List-Servers API.
That used to work, but was broken in commit
df194c8b4c25c6128f03a98fd0e628ba14b743ff because the code change messed
up the order. This commit fixes it by converting those filters first and
then calling Nova API with modified filters.
Reviewed: https:/ /review. openstack. org/506716 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=61079837619 1902c402890c24e 39e4de2e240d2e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 610798376191902 c402890c24e39e4 de2e240d2e
Author: Huan Xiong <email address hidden>
Date: Sat Sep 23 00:41:15 2017 +0800
Fix non-API bound filters in project and admin instance panels
Filters like "image_name", "flavor_name" and "project" in instance
panels are keys not supported in Nova List-Servers API directly, so they
should be converted to "image", "flavor" and "project_id", respectively,
before Horizon calling Nova List-Servers API.
That used to work, but was broken in commit 5c6128f03a98fd0 e628ba14b743ff because the code change messed
df194c8b4c2
up the order. This commit fixes it by converting those filters first and
then calling Nova API with modified filters.
Change-Id: I504caaab2b6f25 6e7eb8c2605acae c39c004e80f
Closes-Bug: #1718725