Thanks to visit codestin.com
Credit goes to github.com

Skip to content

grain saltversioninfo not returning values by index #28763

@cybacolt

Description

@cybacolt

to return the first item in a list, add :0, like so:
salt-call grains.get fqdn_ip4:0

when trying to get the first item from saltversioninfo on 2015.8.x:
salt-call grains.get saltversioninfo:0

nothing is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfirmedSalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to SaltExecution-ModuleGrainsP3Priority 3bugbroken, incorrect, or confusing behaviorhelp-wantedCommunity help is needed to resolve thisseverity-low4th level, cosemtic problems, work around exists

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions