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

Updating an Ansible array in host ui produces escape characters

XMLWordPrintable

    • None
    • None
    • None
    • None
    • No

      Description of problem:

      • When overriding an array in the host ui will create a lot of escape characters (\\\)

      Version-Release number of selected component (if applicable):

      • Satellite 6.14
      • Satellite 6.15 (Snap 3)

      How reproducible:

      • Only in the new host ui
      • Not when defining a global parameter
      • No when overriding the variable in Configure => Ansible Variables

      Steps to Reproduce:
      1. Create a custom Ansible role as documented in Additional info
      2. Import the role into Satellite
      3. Make variable overridable
      4. Set default Parameter Type to "array"
      5. Set the Default Value to ["Default Text"]
      6. Assign the role to a host
      7. Try to override that value in the new host ui

      Actual results:

      • When trying to override the array for a specific host it creates escape characters. Example
        "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Default Text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"] \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        \\\\\\\"a\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"l\\\\\\\\\\\\\\\"d\\\

      Expected results:

      • Overriding an array should not produce escape characters

      Additional info:

      • See screenshot

      Custom Role:

      • filename testrole/tasks/main.yml:
      • filename testrole/defaults/main.yml:

        testrole.test.input: "Default Text"

              rh-ee-gisoni Girija Soni
              jira-bugzilla-migration RH Bugzilla Integration
              Amol Patil Amol Patil
              Leos Stejskal Leos Stejskal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: