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

Global parameters of type hash become string whenever .erb code is used

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • 900
    • Rocket
    • Moderate
    • To Do
    • None

      Description of problem:
      Global parameter of type hash becomes string whenever .erb code is inserted i.e. referred to another parameter.
      
      When a global parameter is created of type "hash" and the content of the parameter is referred to another parameter which is of type string, the output of the hash parameter is a string rather than a hash.
      
      Version-Release number of selected component (if applicable):
      Satellite 6.11+
      
      How reproducible:
      Always
      
      Steps to Reproduce:
      1. Create a global Parameter as below:
      
      Satellite GUI ==> Configure ==> Global parameters ==> Create Parameter ==> Provide name and type as hash  ==> Content will have key:value and some of it will refer to another parameter of type string.
      
      2. Create other 3 global parameters of type string which is referred in the above created hash type parameter.
      
      3. On any host registered to the satellite execute the below command.
      
      # hammer host list
      
      # hammer host enc-dump --id host_id     ///replace host_id with the host id from above command. It will show the parameter of type hash content appended with \r\n and does not output in hash type.
      
      Actual results:
      Parameter output is of type string instead of hash.
      
      
      Expected results:
      Parameter output should display as a hash instead of a string.
      
      
      Additional info:

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: