fix at.present

Because cmd contains a pipe, it must be run by a real shell.
This commit is contained in:
Stuart Jansen 2015-10-21 16:02:18 -06:00
parent fbad88fb99
commit 52c915e29d

View file

@ -83,9 +83,9 @@ def present(name, timespec, tag=None, user=None, job=None):
ret['comment'] = 'User: {0} is not exists'.format(user)
ret['result'] = False
return ret
ret['comment'] = __salt__['cmd.run']('{0}'.format(cmd), runas=user)
ret['comment'] = __salt__['cmd.run']('{0}'.format(cmd), runas=user, python_shell=True)
else:
ret['comment'] = __salt__['cmd.run']('{0}'.format(cmd))
ret['comment'] = __salt__['cmd.run']('{0}'.format(cmd), python_shell=True)
return ret