Skip to content

Instantly share code, notes, and snippets.

@oc
Created October 7, 2013 13:26
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 oc/6867986 to your computer and use it in GitHub Desktop.
Save oc/6867986 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 77, in salt_call
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 303, in run
caller.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 141, in run
self.opts)
File "/usr/lib/python2.7/dist-packages/salt/output/__init__.py", line 30, in display_output
display_data = get_printout(out, opts)(data).rstrip()
File "/usr/lib/python2.7/dist-packages/salt/output/highstate.py", line 67, in output
key=lambda k: data[host][k].get('__run_num__', 0)):
File "/usr/lib/python2.7/dist-packages/salt/output/highstate.py", line 67, in <lambda>
key=lambda k: data[host][k].get('__run_num__', 0)):
AttributeError: 'list' object has no attribute 'get'
2013-10-07 15:24:38,861 [salt.loader ][CRITICAL] Failed to load grains defined in grain file opts.opts in function <function opts at 0x294f7d0>, error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 908, in gen_grains
ret = fun()
File "/usr/lib/python2.7/dist-packages/salt/grains/opts.py", line 12, in opts
if __opts__.get('grain_opts', False) or __pillar__.get('grain_opts', False):
AttributeError: 'str' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment