Skip to content

Instantly share code, notes, and snippets.

@oc
Created October 7, 2013 10:25
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/6865687 to your computer and use it in GitHub Desktop.
Save oc/6865687 to your computer and use it in GitHub Desktop.
State: - service
Name: tomcat6
Function: running
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1237, in call
self.check_refresh(data, ret)
File "/usr/lib/python2.7/dist-packages/salt/states/service.py", line 275, in running
ret = _available(name, ret)
File "/usr/lib/python2.7/dist-packages/salt/states/service.py", line 243, in _available
ret['available'] = name in __salt__['service.get_all']()
File "/usr/lib/python2.7/dist-packages/salt/modules/debian_service.py", line 91, in get_all
return sorted(ret | set(get_enabled()))
File "/usr/lib/python2.7/dist-packages/salt/modules/debian_service.py", line 53, in get_enabled
prefix = '/etc/rc[S{0}].d/S'.format(_get_runlevel())
File "/usr/lib/python2.7/dist-packages/salt/modules/debian_service.py", line 31, in _get_runlevel
out = __salt__['cmd.run']('runlevel')
File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 489, in run
reset_system_locale=reset_system_locale)['stdout']
File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 340, in _run
proc = salt.utils.timed_subprocess.TimedProc(cmd, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 20, in __init__
self.stdin = self.stdin.replace('\\n', '\n')
TypeError: __init__() got an unexpected keyword argument 'with_communicate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment