rename legacy PS module_utils to remove PowerShell prefix (#27495)

pull/27505/head
Matt Davis 7 years ago committed by GitHub
parent b79744f282
commit 91f4c37ed7

@ -791,7 +791,7 @@ def _find_module_utils(module_name, b_module_data, module_path, module_args, tas
for line in lines:
# legacy, equivalent to #Requires -Modules powershell
if REPLACER_WINDOWS in line:
module_names.add(b'Ansible.ModuleUtils.PowerShellLegacy')
module_names.add(b'Ansible.ModuleUtils.Legacy')
line_match = requires_module_list.match(line)
if line_match:
module_names.add(line_match.group(1))

@ -1,6 +1,6 @@
#!powershell
#Requires -Module Ansible.ModuleUtils.PowerShellLegacy
#Requires -Module Ansible.ModuleUtils.Legacy
#Requires -Module Ansible.ModuleUtils.CamelConversion
$ErrorActionPreference = 'Continue'

@ -1,5 +1,5 @@
#!powershell
#Requires -Module Ansible.ModuleUtils.PowerShellLegacy
#Requires -Module Ansible.ModuleUtils.Legacy
Exit-Json @{ data="success" }

@ -1,7 +1,7 @@
#!powershell
# use different cases, spacing and plural of 'module' to exercise flexible powershell dialect
#ReQuiReS -ModUleS Ansible.ModuleUtils.PowerShellLegacy
#ReQuiReS -ModUleS Ansible.ModuleUtils.Legacy
#Requires -Module Ansible.ModuleUtils.ValidTestModule
$o = CustomFunction

Loading…
Cancel
Save