-
Bug
-
Resolution: Done
-
Normal
-
6.14.0
-
0
-
False
-
Moderate
-
None
-
None
-
None
-
None
-
No
Description of problem:
- When overriding an array in the host ui will create a lot of escape characters (\\\)
Version-Release number of selected component (if applicable):
- Satellite 6.14
- Satellite 6.15 (Snap 3)
How reproducible:
- Only in the new host ui
- Not when defining a global parameter
- No when overriding the variable in Configure => Ansible Variables
Steps to Reproduce:
1. Create a custom Ansible role as documented in Additional info
2. Import the role into Satellite
3. Make variable overridable
4. Set default Parameter Type to "array"
5. Set the Default Value to ["Default Text"]
6. Assign the role to a host
7. Try to override that value in the new host ui
Actual results:
- When trying to override the array for a specific host it creates escape characters. Example
"\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Default Text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"] \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\"a\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"l\\\\\\\\\\\\\\\"d\\\
Expected results:
- Overriding an array should not produce escape characters
Additional info:
- See screenshot
Custom Role:
- filename testrole/tasks/main.yml:
—
- filename testrole/defaults/main.yml:
—
testrole.test.input: "Default Text"