Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-31040

New host UI removes newlines and trailing spaces from Ansible variables

XMLWordPrintable

    • None
    • None
    • None
    • Manual
    • Yes

      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

       

              rh-ee-nalfassi Nofar Alfassi
              rhn-support-smeyer Stefan Meyer
              Gaurav Talreja Gaurav Talreja
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: