rehash is a shell builtin, needs cmd.shell to work

This commit is contained in:
Ronald van Zantvoort 2015-11-05 20:08:34 +01:00
parent 17f3852bdd
commit a9ee178e0d

View file

@ -467,7 +467,7 @@ def _rehash():
'''
shell = __salt__['environ.get']('SHELL')
if shell.split('/')[-1] in ('csh', 'tcsh'):
__salt__['cmd.run']('rehash', output_loglevel='trace')
__salt__['cmd.shell']('rehash', output_loglevel='trace')
def file_list(*packages):