Merge pull request #28187 from sjansen/patch-1

fix at.present
This commit is contained in:
Mike Place 2015-10-29 09:49:18 -06:00
commit 4304001a8f

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