Clear PSModulePath environment variable

This commit is contained in:
twangboy 2025-01-14 13:26:00 -07:00 committed by Daniel Wozniak
parent a98b9cb138
commit 4eca31c2f1

View file

@ -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