Skip to content

Instantly share code, notes, and snippets.

@PeterS242
Created April 27, 2018 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterS242/41f00de7f2a328478849ef2cb54330c4 to your computer and use it in GitHub Desktop.
Save PeterS242/41f00de7f2a328478849ef2cb54330c4 to your computer and use it in GitHub Desktop.
salt 2018.3.0 problem outputting docs?
[root@master ~]# salt -d > /tmp/d
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: string indices must be integers
Traceback (most recent call last):
File "/usr/bin/salt", line 10, in <module>
salt_main()
File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 485, in salt_main
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 188, in run
self._output_ret(ret, out, retcode=retcode)
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 370, in _output_ret
self._print_docs(ret)
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 431, in _print_docs
if fun not in docs and ret[host][fun]:
TypeError: string indices must be integers
Traceback (most recent call last):
File "/usr/bin/salt", line 10, in <module>
salt_main()
File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 485, in salt_main
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 188, in run
self._output_ret(ret, out, retcode=retcode)
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 370, in _output_ret
self._print_docs(ret)
File "/usr/lib/python2.7/site-packages/salt/cli/salt.py", line 431, in _print_docs
if fun not in docs and ret[host][fun]:
TypeError: string indices must be integers
[root@master ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment