Skip to content

[outputter] add sort option #21797

@rominf

Description

@rominf

We have minions named by this scheme:

HOSTNAME_CITY_NUMBER

So I would like to get results sorted by minions id, but not by their response time.

Instead of this:

$ salt -v '*tula*' pkg.version WeightControlSystem
Executing job with jid 20150319105503810996
-------------------------------------------

stolb-db.tula_3:
    3.0.1.26-20150318T1336
stolb-db.tula_4:
    3.0.1.26-20150318T1336
stolb-db.tula_2:
    Minion did not return. [Not connected]
stolb-db.tula_1:
    Minion did not return. [Not connected]

I want to get this:

$ salt -v '*tula*' pkg.version WeightControlSystem
Executing job with jid 20150319105503810996
-------------------------------------------

stolb-db.tula_1:
    Minion did not return. [Not connected]
stolb-db.tula_2:
    Minion did not return. [Not connected]
stolb-db.tula_3:
    3.0.1.26-20150318T1336
stolb-db.tula_4:
    3.0.1.26-20150318T1336

Unfortunately there is not simple way to sort YAML with the help of *NIX utilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corerelates to code central or existential to SaltFeaturenew functionality including changes to functionality and code refactors, etc.P3Priority 3stale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions