Project

General

Profile

Actions

Bug #38250

closed

New host UI removes newlines and trailing spaces from Ansible variables

Added by Nofar Alfassi 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:

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 2 months 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 2 months ago

  • Fixed in Releases foreman_ansible-15.0.4 added
Actions #3

Updated by Nofar Alfassi 2 months ago

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

Updated by The Foreman Bot 2 months ago

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

Updated by Nofar Alfassi 2 months 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 #6

Updated by Nofar Alfassi about 1 month ago

  • Fixed in Releases foreman_ansible-16.0.0 added
  • Fixed in Releases deleted (foreman_ansible-15.0.6)
Actions #7

Updated by Ewoud Kohl van Wijngaarden about 1 month ago

  • Fixed in Releases foreman_ansible-15.0.6 added
Actions #8

Updated by Nofar Alfassi about 1 month ago

  • Red Hat JIRA set to SAT-31040
Actions

Also available in: Atom PDF