shell migration for monit

This commit is contained in:
Thomas S Hatch 2015-01-07 14:33:12 -07:00
parent e63dc26c91
commit 9d90d9d062

View File

@ -26,7 +26,7 @@ def start(name):
'''
cmd = 'monit start {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
return not __salt__['cmd.retcode'](cmd, python_shell=False)
def stop(name):
@ -41,7 +41,7 @@ def stop(name):
'''
cmd = 'monit stop {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
return not __salt__['cmd.retcode'](cmd, python_shell=False)
def restart(name):
@ -56,7 +56,7 @@ def restart(name):
'''
cmd = 'monit restart {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
return not __salt__['cmd.retcode'](cmd, python_shell=False)
def unmonitor(name):
@ -71,7 +71,7 @@ def unmonitor(name):
'''
cmd = 'monit unmonitor {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
return not __salt__['cmd.retcode'](cmd, python_shell=False)
def monitor(name):
@ -86,7 +86,7 @@ def monitor(name):
'''
cmd = 'monit monitor {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
return not __salt__['cmd.retcode'](cmd, python_shell=False)
def summary(svc_name=''):