-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change get_targets_for_source to use correct params #16811
Change get_targets_for_source to use correct params #16811
Conversation
@miq-bot assign @gmcculloug |
@miq-bot add_label provisioning |
caae6b8
to
6467ee1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
6467ee1
to
59ba714
Compare
Checked commit d-m-u@59ba714 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@@ -95,7 +95,6 @@ def availability_zone_to_cloud_network(src) | |||
hash[cn.id] = cn.name | |||
end | |||
else | |||
return {} unless load_ar_obj(src[:ems]).cloud_subnets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, glad you were able to remove this check. 👍
@miq-bot add_label gaprindashvili/yes |
Change get_targets_for_source to use correct params (cherry picked from commit d9b5cb5) https://bugzilla.redhat.com/show_bug.cgi?id=1533277
Gaprindashvili backport details:
|
@gmcculloug @d-m-u Since this PR was backported to gaprindashvili, don't we want to also backport the spec file change PRs that are linked in this PR? |
@simaishi Yes I would agree with that. There is also a non-spec PR listed above: ManageIQ/manageiq-providers-openstack#197 The remaining ones all appear to be spec only. @d-m-u Are there any other PRs related to this work that may not be listed here? |
Ignore that first part, I found that PR ManageIQ/manageiq-providers-openstack#197 was replaced by ManageIQ/manageiq-providers-openstack#202 which is already back-ported. |
@d-m-u Can you please add |
Source needs to be src and the last param in this call needs to be the correct association name.
Previously, cloud network list was only updated after selection of security group, or change of tab, or a select set of other actions that completely voided the list of parameters passed to the filtering method. This issue was fixed in #16688. Unfortunately I also introduced an issue where get_targets_for_source was not returning the right things because I wasn't calling it correctly, which this PR should fix.
Related to:
ManageIQ/manageiq-content#241
https://bugzilla.redhat.com/show_bug.cgi?id=1518847