-
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
Return empty array for delegation with nil manager #19473
Return empty array for delegation with nil manager #19473
Conversation
a216be8
to
4975f8d
Compare
4975f8d
to
7c695f7
Compare
If a NetworkManager doesn't have a parent_manager (e.g. Nuage) return an empty array instead of a nil Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767747
7c695f7
to
c475153
Compare
Checked commit kbrock@c475153 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 app/models/manageiq/providers/network_manager.rb
|
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.
👍 looks good
…delegate_without_parent_manager Return empty array for delegation with nil manager
Rails console after this change:
And the following CI failures in ui-classis: https://travis-ci.org/ManageIQ/manageiq-ui-classic/jobs/608753209?utm_medium=notification&utm_source=github_status |
I think that this PR nicely shows that the idea of running the tests on the other repos (UI) only on demand is not that great. |
|
While we would like to avoid delegation, easier to just point to the parent manager for auth key pairs fixes but with ManageIQ#19473
@kbrock Can this be |
Note: if you merge this, you also need #19486 which undoes one of the changes |
…delegate_without_parent_manager Return empty array for delegation with nil manager (cherry picked from commit fe3f8ea) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1785374
Ivanchuk backport details:
|
If a NetworkManager doesn't have a parent_manager (e.g. Nuage) return an empty array instead of a nil
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767747
Alternative to #19459 by @agrare