Project

General

Profile

Actions

Bug #38250

closed

New host UI removes newlines and trailing spaces from Ansible variables

Added by Nofar Alfassi 5 days ago. Updated about 9 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Fixed in Releases:
Found in Releases:

Description

Description of problem:

New host UI removes newlines and trailing spaces from Ansible variables

How reproducible:

When creating an Ansible variable override through Configure => Ansible => Variables
the user is able to create a multi line entry for the variable.

Steps to Reproduce:
1. Create an Ansible role with an overridable variable
2. Set the variable in Configure => Ansible => Variables with a multi line text
3. Override or edit/save the variable in the hosts new UI

Actual behavior:
This does not work when the variable is overridden in the new host UI.
In that case all newline characters and trailing spaces are removed and
all lines are squashed into one line.

Expected behavior:
As “Literal Block Scalar” are fully supported by Ansible [1] the new host UI should
behave the same way as overriding a variable in Configure => Ansible => Variables.

Business Impact

Any editing of multi line variables in the new host UI will destroy any multi line
entries and may affect the next Ansible run.

References
[1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html

Actions #1

Updated by The Foreman Bot 5 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/755 added
Actions #2

Updated by The Foreman Bot about 13 hours ago

  • Fixed in Releases foreman_ansible-15.0.4 added
Actions #3

Updated by Nofar Alfassi about 12 hours ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by The Foreman Bot about 10 hours ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/756 added
Actions #5

Updated by Nofar Alfassi about 9 hours ago

  • Target version changed from foreman_ansible-15.0.4 to foreman_ansible-15.0.6
  • Fixed in Releases foreman_ansible-15.0.6 added
  • Fixed in Releases deleted (foreman_ansible-15.0.4)
Actions

Also available in: Atom PDF