mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix at.present
Because cmd contains a pipe, it must be run by a real shell.
This commit is contained in:
parent
fbad88fb99
commit
52c915e29d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue