(cherry picked from commit 3c33618cf6
)
This commit is contained in:
parent
e6a4585807
commit
cd89aadec1
2 changed files with 2 additions and 6 deletions
2
changelogs/fragments/powershell-version-env.yml
Normal file
2
changelogs/fragments/powershell-version-env.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- powershell - remove getting the PowerShell version from the env var ``POWERSHELL_VERSION``. This feature never worked properly and can cause conflicts with other libraries that use this var
|
|
@ -30,12 +30,6 @@ from ansible.plugins.shell import ShellBase
|
|||
|
||||
_common_args = ['PowerShell', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Unrestricted']
|
||||
|
||||
# Primarily for testing, allow explicitly specifying PowerShell version via
|
||||
# an environment variable.
|
||||
_powershell_version = os.environ.get('POWERSHELL_VERSION', None)
|
||||
if _powershell_version:
|
||||
_common_args = ['PowerShell', '-Version', _powershell_version] + _common_args[1:]
|
||||
|
||||
|
||||
def _parse_clixml(data, stream="Error"):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue