Uploaded image for project: 'XenServer Org'
  1. XenServer Org
  2. XSO-595

xe --minimal only handles a single parameter at a time and otherwise defaults to uuid

    Details

    • Type: Improvement
    • Status: Wishlist (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None

      Description

      AIUI, the --minimal flag should return a minimized representation of the rows returned by xapi. Currently it appears when more than one parameter is specified via the params= specifier, the xe cli only returns the uuid.

      It would be great if instead we could get an interleaved list of the parameters as specified via params and even better if the order in the params persisted.

      Single parameter works fine:

      # xe vm-list params=name-label  --minimal power-state=running 
      chef.prod.zoinks,xoa.prod.zoinks,Control domain on host: warpr
      

      Multiple parameters always returns the uuid, as opposed to name-label, uuid for each row.

      # xe vm-list params=name-label,uuid  --minimal power-state=running 
      d99782f6-4c5f-dc55-ec45-5f0e86b160c8,d36e51d7-aa5c-e020-ba6f-670e62a8fce5,3feecd0d-ad89-4b34-b0b3-57b45b4186cf
      

      Suspect this is also present in the previous release, but as I upgraded recently I haven't had the chance to confirm this before I can't say for sure. Also, setting the ticket type to Improvement as the --minimal param is not widely documented so for all I know, this may be working to spec.

        Attachments

          Activity

            People

            • Assignee:
              enzo enzo raso
              Reporter:
              goncalo Goncalo Gomes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: