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

hammer command with csv option generates few fields in ruby format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 6.17.z, 6.18.0
    • Hammer
    • 8
    • False
    • Low
    • sat-rocket
    • None
    • None
    • None
    • Manual

      Description of problem:

      This is a follow-up bug for https://issues.redhat.com/browse/SAT-22589 where the CV-related fields were resolved.

      This bug targets the remaining fields (Parameters::1, All parameters::1, All parameters::2, ..., All parameters::8) which also return the values in Ruby format.

       

      How reproducible:

      always

       

      Is this issue a regression from an earlier version:

      No, it's present in 6.17 too

       

      Steps to Reproduce:

      1. Register a RHEL host to a Satellite.

      2. Run `hammer --csv host info --name "$host"`

      3. Or more specifically, run `hammer --csv host info --name "$host" --fields "Name,Id,Parameters"`

       

      Actual behavior:

      Ruby in the CSV output:

      # hammer --csv host info --name "$host" --fields "Name,Id,Parameters,All Parameters"
      Id,Name,Parameters::1,All parameters::1,All parameters::2,All parameters::3,All parameters::4,All parameters::5,All parameters::6,All parameters::7,All parameters::8
      3,host.redhat.com,"\{""priority""=>70, ""created_at""=>""2025-06-05 07:53:09 UTC"", ""updated_at""=>""2025-06-05 07:53:09 UTC"", ""id""=>12, ""name""=>""host_update_packages"", ""parameter_type""=>""boolean"", ""associated_type""=>""host"", ""hidden_value?""=>false, ""value""=>false}","\{""priority""=>70, ""created_at""=>""2025-06-05 07:53:09 UTC"", ""updated_at""=>""2025-06-05 07:53:09 UTC"", ""id""=>12, ""name""=>""host_update_packages"", ""parameter_type""=>""boolean"", ""associated_type""=>""host"", ""hidden_value?""=>false, ""value""=>false}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:37 UTC"", ""updated_at""=>""2025-06-04 10:11:37 UTC"", ""id""=>3, ""name""=>""host_registration_remote_execution"", ""parameter_type""=>""boolean"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>true}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:37 UTC"", ""updated_at""=>""2025-06-04 10:11:37 UTC"", ""id""=>5, ""name""=>""host_registration_insights_inventory"", ""parameter_type""=>""boolean"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>true}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:10:44 UTC"", ""updated_at""=>""2025-06-04 10:10:44 UTC"", ""id""=>1, ""name""=>""host_registration_insights"", ""parameter_type""=>""boolean"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>true}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:37 UTC"", ""updated_at""=>""2025-06-04 10:11:37 UTC"", ""id""=>4, ""name""=>""host_packages"", ""parameter_type""=>""string"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>""""}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:39 UTC"", ""updated_at""=>""2025-06-04 10:11:39 UTC"", ""id""=>7, ""name""=>""enable-puppet5"", ""parameter_type""=>""string"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>""true""}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:39 UTC"", ""updated_at""=>""2025-06-04 10:11:39 UTC"", ""id""=>6, ""name""=>""enable-epel"", ""parameter_type""=>""string"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>""false""}","\{""priority""=>0, ""created_at""=>""2025-06-04 10:11:37 UTC"", ""updated_at""=>""2025-06-04 10:11:37 UTC"", ""id""=>2, ""name""=>""ansible_roles_check_mode"", ""parameter_type""=>""boolean"", ""associated_type""=>""global"", ""hidden_value?""=>false, ""value""=>false}"
      

      Expected behavior:

      The above output should have each field as a single field, and not some in Ruby format.

              Unassigned Unassigned
              vsedmik@redhat.com Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: