Skip to content
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

Fix: error loading configuration screen when key/value settings exists on top level #5428

Merged

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Apr 4, 2019

Issue:
When settings value added on root level (without category) attempt to execute copy_hash(hashin) will raise [NoMethodError] undefined method 'deep_clone'...

Example:
execute curl --user admin:smartvm -i -X PATCH -d '{"some_key": false}' http://<host>/api/servers/3/settings will add :some_key: false settings on the top level

BEFORE:
Screen Shot 2019-04-04 at 9 25 02 AM

AFTER:
Screen Shot 2019-04-04 at 9 19 05 AM

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695566

@miq-bot add-label bug

…parameter 'hashin' passed to copy_hash(hashin) is not instanse of Hash and error raised [NoMethodError] undefined method 'deep_clone'...

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695566
@miq-bot miq-bot added the bug label Apr 4, 2019
@miq-bot
Copy link
Member

miq-bot commented Apr 4, 2019

Checked commit yrudman@de010a9 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@yrudman yrudman closed this Apr 4, 2019
@yrudman yrudman reopened this Apr 4, 2019
@yrudman
Copy link
Contributor Author

yrudman commented Apr 4, 2019

@miq-bot add-label hammer/yes

@mzazrivec mzazrivec self-assigned this Apr 5, 2019
@mzazrivec mzazrivec added this to the Sprint 109 Ending Apr 15, 2019 milestone Apr 5, 2019
@mzazrivec mzazrivec merged commit 433d69d into ManageIQ:master Apr 5, 2019
@yrudman yrudman deleted the use-deep_clone-on-whole-settings branch April 5, 2019 13:17
@yrudman
Copy link
Contributor Author

yrudman commented Apr 24, 2019

@miq-bot add-label changelog/yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants