Don't log powershell command

This commit is contained in:
twangboy 2023-06-05 15:16:26 -06:00 committed by Megan Wilhite
parent 499c8ea103
commit 6aab93fcf2

View file

@ -43,7 +43,6 @@ def run_dict(cmd, cwd=None):
cmd = f"{cmd} | ConvertTo-Json"
if "progresspreference" not in cmd.lower():
cmd = f"$ProgressPreference = 'SilentlyContinue'; {cmd}"
log.debug("PowerShell: %s", cmd)
ret = __salt__["cmd.run_all"](cmd, shell="powershell", cwd=cwd)
if "pid" in ret: