Bug #29232
closedOverriding ansible variable of Array type, webUI modifys the "Default Value" field and add "\" with every matcher addition.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1785820
Description of problem:
ability to override ansible role variable.
If the variable's type is array, then, the webUI modifies the "Default Value" field on each edition + saving. It adds some escape characters "\".
Way to reproduce:
1. Import the role "linux-system-roles.timesync" and its variables
2. Associate this role to an host
3. Override variable "timesync_ntp_servers": set a default value to e.g. ["europe.pool.ntp.org"], add matcher e.g. fqdn = <host>, value = ["lu.pool.ntp.org"] and submit
4. Add a matcher and submit
5. Repeat step 4
Behavior:
First override: Default Value: ["europe.pool.ntp.org"]
Next saving: "[\"europe.pool.ntp.org\"]"
Next saving: "\"[\\\"europe.pool.ntp.org\\\"]\""
Next saving: "\"\\\"[\\\\\\\"europe.pool.ntp.org\\\\\\\"]\\\"\""
How reproducible:
100%
Updated by Dominik Matoulek about 4 years ago
- Subject changed from Overriding ansible variable of Array type, webUI modifys the "Default Value" field and add "\" with every matcher addition. to Overriding ansible variable of Array type, webUI modifys the "Default Value" field and add "\" with every matcher addition.
- Triaged changed from No to Yes
Updated by Ondřej Pražák about 4 years ago
- Is duplicate of Bug #27445: Corrupt default value in Ansible Variables added