-
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
Stop nils from appearing in list of hosts to test OSP ssh keys against #13159
Stop nils from appearing in list of hosts to test OSP ssh keys against #13159
Conversation
@mansam you are right about that But I am not happy with removing that sorting and slicing by If we settle on using all hosts I am happy to ack this. If we still need to use only 1 host from each cluster I think appending |
@petrblaho Ah, I see. Yes, |
9d9555e
to
dd0b8da
Compare
Works for me 👍 |
@petrblaho thanks for taking a look! looks good to me as well. |
@miq-bot assign @blomquisg |
@mansam can you throw a test together for this? I think I understand what the problem was, but would be nice to see a test validate it. |
dd0b8da
to
96c7e28
Compare
@blomquisg tests added. :) |
Some comments on commits mansam/manageiq@3c80a31~...96c7e28 spec/models/manageiq/providers/openstack/infra_manager_spec.rb
|
Checked commits mansam/manageiq@3c80a31~...96c7e28 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 spec/models/manageiq/providers/openstack/infra_manager_spec.rb
|
Thanks @petrblaho! |
This fixes a scenario when validating a new SSH key where Openstack Infra hosts that were powered off would cause validation to throw an exception. The enumeration used to collection hosts was returning
nil
for powered off hosts instead of excluding them from the list, resulting in an attempt to callverify_credentials
againstnil
.This fixes the issue described in https://bugzilla.redhat.com/show_bug.cgi?id=1376605
@petrblaho
@tzumainn