Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grain saltversioninfo not returning values by index #28763

Closed
cybacolt opened this issue Nov 11, 2015 · 2 comments
Closed

grain saltversioninfo not returning values by index #28763

cybacolt opened this issue Nov 11, 2015 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Core relates to code central or existential to Salt Execution-Module Grains help-wanted Community help is needed to resolve this P3 Priority 3 severity-low 4th level, cosemtic problems, work around exists
Milestone

Comments

@cybacolt
Copy link

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.

@jfindlay jfindlay added Execution-Module Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists Core relates to code central or existential to Salt P3 Priority 3 Grains labels Nov 13, 2015
@jfindlay jfindlay added this to the Approved milestone Nov 13, 2015
@jfindlay jfindlay added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Nov 13, 2015
@jfindlay
Copy link
Contributor

@cybacolt, thanks for the report. I'm not sure if it matters, but the fqdn_ipv4 list is returned in green text and the saltversioninfo is bold yellow text.

jmoney-main ~ master # salt-call grains.get fqdn_ip4
local:
    - 10.210.201.55
    - 103.269.133.173
jmoney-main ~ master # salt-call grains.get saltversioninfo
local:
    - 2015
    - 8
    - 1
    - 0
jmoney-main ~ master # salt-call grains.get fqdn_ip4:1
local:
    103.269.133.173
jmoney-main ~ master # salt-call grains.get saltversioninfo:1
local:
jmoney-main ~ master # salt-call --versions
Salt Version:
           Salt: 2015.8.1

Dependency Versions:
         Jinja2: 2.7.3
       M2Crypto: 0.21.1
           Mako: 1.0.0
         PyYAML: 3.11
          PyZMQ: 14.4.0
         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: 0.8.6
       cherrypy: Not Installed
       dateutil: Not Installed
          gitdb: 0.5.4
      gitpython: 0.3.2 RC1
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.2
   mysql-python: Not Installed
      pycparser: 2.10
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: 0.8.2
        timelib: Not Installed

System Versions:
           dist: debian 8.2
        machine: x86_64
        release: 3.16.0-4-amd64
         system: debian 8.2

@jfindlay jfindlay added the help-wanted Community help is needed to resolve this label Nov 13, 2015
@abednarik
Copy link
Contributor

This one should be fixed now.

@basepi basepi closed this as completed in 882e9ac Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Core relates to code central or existential to Salt Execution-Module Grains help-wanted Community help is needed to resolve this P3 Priority 3 severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

No branches or pull requests

3 participants