mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
win_exec: refactor PS exec runner (#45334)
* win_exec: refactor PS exec runner * more changes for PSCore compatibility * made some changes based on the recent review * split up module exec scripts for smaller payload * removed C# module support to focus on just error msg improvement * cleaned up c# test classifier code
This commit is contained in:
parent
aa2f3edb49
commit
e972287c35
34 changed files with 2751 additions and 1676 deletions
|
@ -9,13 +9,6 @@
|
|||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# NOTE: Ensure we get proper debug information when things fall over
|
||||
trap {
|
||||
if ($null -eq $result) { $result = @{} }
|
||||
$result.exception = "$($_ | Out-String)`r`n$($_.ScriptStackTrace)"
|
||||
Fail-Json -obj $result -message "Uncaught exception: $($_.Exception.Message)"
|
||||
}
|
||||
|
||||
$params = Parse-Args -arguments $args -supports_check_mode $true
|
||||
|
||||
$process_name_exact = Get-AnsibleParam -obj $params -name "process_name_exact" -type "list"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue