-
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
[V2V] Conversion Host - Use JSON format for extra vars #18772
[V2V] Conversion Host - Use JSON format for extra vars #18772
Conversation
Checked commit fabiendupont@d796ffd with ruby 2.3.3, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
👍 LGTM nice change
👍 :) |
@djberg96 thanks for the idea. |
Not that it matters any more since its been merged, but simple enough and looks good! |
…s_extra_vars_as_json [V2V] Conversion Host - Use JSON format for extra vars (cherry picked from commit ca1fe1f) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1711035
Hammer backport details:
|
In current implementation, the extra vars passed to the conversion host enablement playbook are separate strings. The problem with that is string escaping can be tricky, and it already creates problems with long multiline strings.
A solution is to use a single JSON string that contains all the extra vars. This PR implements that and the string is generated by
.to_json
which handles all the escaping for us.RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1710448