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

hammer list commands for katello endpoints does not sort the output with ID

XMLWordPrintable

    • 2
    • False
    • Artemis Prioritized Backlog
    • sat-artemis
    • None
    • None
    • None
    • None

      Description of problem:

      hammer list commands for katello endpoints does not sort the output with ID

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

      Satellite 6.17

      How reproducible:

      Always

      Steps to Reproduce:

      1. Run the following command on Satellite.

       

         hammer repository list --order 'id DESC'
         hammer content-view list --order 'id DESC'
         hammer content-view versions list --order 'id DESC'
      

      Actual results:

       

      `id DESC` is the example from hammer help. 

      The command provides a empty output. 

      If name is used instead of id, the list works fine. 

      hammer repository list --order 'name DESC' --fields Name

      Additional info:

      API call with the same order parameter reports the the following message.

          "error": "the field 'Id' in the order statement is not valid field for search",

      API Doc also has the same example. 

              Unassigned Unassigned
              rhn-support-msunil Manu Sunil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: