diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py index 549e6934c0a0..72828b5e2924 100644 --- a/salt/modules/cmdmod.py +++ b/salt/modules/cmdmod.py @@ -2946,9 +2946,9 @@ def _cleanup_tempfile(path): env = {} paths = [ - fr'{os.getenv("SystemRoot")}\System32\WindowsPowerShell\v1.0\Modules', - fr'{os.getenv("ProgramFiles")}\WindowsPowerShell\Modules', - fr'{os.getenv("ProgramFiles(x86)", "")}\WindowsPowerShell\Modules', + rf'{os.getenv("SystemRoot")}\System32\WindowsPowerShell\v1.0\Modules', + rf'{os.getenv("ProgramFiles")}\WindowsPowerShell\Modules', + rf'{os.getenv("ProgramFiles(x86)", "")}\WindowsPowerShell\Modules', ] ps_module_path = os.getenv("PSModulePath", "").split(";")