Python's requests library accepts a dict with params and then properly encodes this to be sent to a server. This avoids the need to manually encode this in our examples.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
This fixes a build issue in Red Hat's downstream where Pantheon fails on &, but generally is safer and more understandable code.
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
What changes are you introducing?
Python's requests library accepts a dict with params and then properly encodes this to be sent to a server. This avoids the need to manually encode this in our examples.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
This fixes a build issue in Red Hat's downstream where Pantheon fails on
&
, but generally is safer and more understandable code.Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
This is an alternative to https://github.com/theforeman/foreman-documentation/pull/3405.
I must admit I haven't tried this on a real system and is solely written based on knowing Python and requests.
Checklists
Please cherry-pick my commits into: