Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Created October 7, 2013 10:51
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 valentinbud/6865962 to your computer and use it in GitHub Desktop.
Save valentinbud/6865962 to your computer and use it in GitHub Desktop.
# salt-call -l debug lxc.create lxc02 template=debian-wheezy backing=lvm vgname=vg0 size=2G
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: list indices must be integers, not str
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 137, in run
ret = self.call()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 78, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/lxc.py", line 189, in create
if exists(name):
File "/usr/lib/python2.7/dist-packages/salt/modules/lxc.py", line 346, in exists
return name in (l['running'] + l['stopped'] + l['frozen'])
TypeError: list indices must be integers, not str
TypeError: list indices must be integers, not str
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 137, in run
ret = self.call()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 78, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/lxc.py", line 189, in create
if exists(name):
File "/usr/lib/python2.7/dist-packages/salt/modules/lxc.py", line 346, in exists
return name in (l['running'] + l['stopped'] + l['frozen'])
TypeError: list indices must be integers, not str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment