mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Try clearing PSModulePath
This commit is contained in:
parent
02e110abc7
commit
fc87799639
1 changed files with 2 additions and 1 deletions
|
@ -2973,7 +2973,8 @@ def script(
|
|||
for mod_path in ps_module_path:
|
||||
if mod_path:
|
||||
mod_paths += f"{str(path)};"
|
||||
env.update({"PSModulePath": mod_paths})
|
||||
# env.update({"PSModulePath": mod_paths})
|
||||
env.update({"PSModulePath": ""})
|
||||
else:
|
||||
cmd_path = _cmd_quote(path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue