-
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
[EmbeddedAnsible] Fix edit credentials #20524
[EmbeddedAnsible] Fix edit credentials #20524
Conversation
Wow! Pretty sure that's a rubocop bug. Its detecting the alignment to the middle of the I wonder if that happens with a newer rubocop. |
The rubocops in app/models/manageiq/providers/embedded_ansible/automation_manager/openstack_credential.rb should be fixed cause they are actually misaligned. Same with "Redundant curly braces around a hash parameter.". The rest I think are on unrelated lines. |
9ced20d
to
39899d2
Compare
There was a bug when editing credentials for EmbeddedAnsible where if you edited an attribute and there are other attributes on the particular credential class' params_to_attributes method which have to be converted, those previously would be `nil`'d out. This fixes that, and modifies tests to confirm that this is now working.
39899d2
to
7bbdf70
Compare
Checked commit NickLaMuro@7bbdf70 with ruby 2.6.3, rubocop 0.69.0, haml-lint 0.28.0, and yamllint spec/models/manageiq/providers/embedded_ansible/automation_manager/credential_spec.rb
|
@Fryguy I assume you are good with this now that the |
…tial-editing [EmbeddedAnsible] Fix edit credentials (cherry picked from commit 9a23708)
Jansa backport details:
|
Hi @NickLaMuro Can this be ivanchuk/yes? |
@tinaafitz yeah, that would be fine. Just slipped my mind on that one. @miq-bot add_label ivanchuk/yes |
…tial-editing [EmbeddedAnsible] Fix edit credentials (cherry picked from commit 9a23708) https://bugzilla.redhat.com/show_bug.cgi?id=1881513
Ivanchuk backport details:
|
Fixes ManageIQ/manageiq-ui-classic#7286
There was a bug when editing credentials for EmbeddedAnsible where if you edited an attribute and there are other attributes on the particular credential class'
params_to_attributes
method which have to be converted, those previously would benil
'd out.This fixes that, and modifies tests to confirm that this is now working.
Links
EmbeddedAnsible
SCM credential cause key to be nil'd out manageiq-ui-classic#7286ivanchuk
)