-
Notifications
You must be signed in to change notification settings - Fork 69
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
Changes sysprep field to be a hash #35
Conversation
@miq-bot add_label bug |
5b87243
to
8d623ce
Compare
"285" => "(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands", | ||
"290" => "(GMT+12:00) Auckland, Wellington", | ||
"300" => "(GMT+13:00) Nuku'alofa" | ||
}.freeze |
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.
@d-m-u This is a good start, but we should keep the single quotes since there is no string interpolation happening here.
The goal is to keep the data as a hash throughout the provisioning workflow (including interactions with the UI) so that the data can be processed from an API call similar to other dialog fields.
'285' => "(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands", | ||
'290' => "(GMT+12:00) Auckland, Wellington", | ||
'300' => "(GMT+13:00) Nuku'alofa" | ||
}.freeze |
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.
And while you are at it single quotes would work on the value side of the hash. Note "(GMT+13:00) Nuku'alofa"
requires escaping: '(GMT+13:00) Nuku\'alofa'
@d-m-u 'gmcculloug' is an invalid assignee, ignoring... |
@d-m-u Please squash these commits |
@d-m-u Something went wrong with your rebase. Pulled in some other commits. |
Checked commit d-m-u@8719627 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@gmcculloug will merge on your 👍 |
I can't test this, I don't have data for the provider. |
@agrare This is good to merge now. |
Changes sysprep field to be a hash (cherry picked from commit 73ef1aa) https://bugzilla.redhat.com/show_bug.cgi?id=1443247
Fine backport details:
|
Euwe backport (to manageiq repo) details:
|
…tire_change Ansible Playbook Generic State machine retirement change.
Data for the sysprep_timezone dialog field is stored differently than other fields. Instead of hashes the data is stored in an array which is causing https://bugzilla.redhat.com/show_bug.cgi?id=1406084.
This changes the field to a hash like the others.