mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Clear PSModulePath environment variable
This commit is contained in:
parent
a98b9cb138
commit
4eca31c2f1
1 changed files with 7 additions and 1 deletions
|
@ -57,7 +57,13 @@ def test_windows_script_args_powershell(cmd, shell, issue_56195):
|
|||
)
|
||||
script = "salt://issue-56195/test.ps1"
|
||||
|
||||
ret = cmd.script(source=script, args=args, shell="powershell", saltenv="base")
|
||||
ret = cmd.script(
|
||||
source=script,
|
||||
args=args,
|
||||
shell="powershell",
|
||||
saltenv="base",
|
||||
env={"PSModulePath": ""}
|
||||
)
|
||||
|
||||
assert ret["stdout"] == password
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue