-
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
[MiqWorker::worker_settings] Handle number strings #18453
[MiqWorker::worker_settings] Handle number strings #18453
Conversation
LGTM. Anything outside of the workers section won't get this fix but hopefully most of the number strings people set are for the workers. |
8b440fe
to
7a4c8d0
Compare
Overall LGTM...had one minor comment but we could probably merge without it. |
Due to some UI specific issues, settings in the config can be set as "integer strings", or a string that is just a integer (floats are also possible). This doesn't work booting workers as it initializes them with incorrect values. This does some extra checking to avoid that.
7a4c8d0
to
eee01fb
Compare
Checked commit NickLaMuro@eee01fb with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add_label hammer/yes |
…_worker_settings [MiqWorker::worker_settings] Handle number strings (cherry picked from commit 2f897c5) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1677409
Hammer backport details:
|
Due to some UI specific issues, settings in the config can be set as "integer strings", or a string that is just a integer (floats are also possible). This doesn't work booting workers as it initializes them with incorrect values.
This does some extra checking to avoid that.
Links