Project

General

Profile

Actions

Bug #29232

closed

Overriding ansible variable of Array type, webUI modifys the "Default Value" field and add "\" with every matcher addition.

Added by Dominik Matoulek over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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%


Related issues 1 (0 open1 closed)

Is duplicate of Ansible - Bug #27445: Corrupt default value in Ansible VariablesClosedOndřej PražákActions
Actions

Also available in: Atom PDF