Closed
Description
I tried running salt '*' grains.ls
, per the instructions in the docs:
http://docs.saltstack.org/en/latest/ref/modules/all/salt.modules.grains.html
I get the following:
File "/usr/bin/salt", line 10, in <module>
salt_main()
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 103, in salt_main
client.run()
File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 107, in run
self._output_ret(ret, out)
File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 122, in _output_ret
salt.output.display_output(ret, out, self.config)
File "/usr/lib/pymodules/python2.7/salt/output/__init__.py", line 22, in display_output
print(get_printout(out, opts)(data).rstrip())
File "/usr/lib/pymodules/python2.7/salt/output/grains.py", line 21, in output
for val in minion[key]:
TypeError: list indices must be integers, not str
I'm running Ubuntu 12.04-1 LTS
on AWS
here's the output of --versions-report:
Salt: 0.11.1
Python: 2.7.3 (default, Aug 1 2012, 05:14:39)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: not installed
pycrypto: 2.4.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
Metadata
Assignees
Labels
No labels