Skip to content

Commit

Permalink
fix at.present
Browse files Browse the repository at this point in the history
Because cmd contains a pipe, it must be run by a real shell.
  • Loading branch information
sjansen committed Oct 21, 2015
1 parent fbad88f commit 52c915e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/states/at.py
Expand Up @@ -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

Expand Down

0 comments on commit 52c915e

Please sign in to comment.