Skip to content

Commit

Permalink
Merge pull request #28187 from sjansen/patch-1
Browse files Browse the repository at this point in the history
fix at.present
  • Loading branch information
Mike Place committed Oct 29, 2015
2 parents 5efac26 + 52c915e commit 4304001
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 4304001

Please sign in to comment.