mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
rehash is a shell builtin, needs cmd.shell to work
This commit is contained in:
parent
17f3852bdd
commit
a9ee178e0d
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue