mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
win_script: add support for become and centralise exec wrapper builder (#45582)
* win_script: add support for become and centralise exec wrapper builder * satisfying the pep8 gods * do not scan for module dependencies when running as a script
This commit is contained in:
@@ -987,7 +987,7 @@ $exec_wrapper = {
|
||||
|
||||
$output = $entrypoint.Run($payload)
|
||||
# base64 encode the output so the non-ascii characters are preserved
|
||||
Write-Output ([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes((Write-Output $output))))
|
||||
Write-Output ([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes((Write-Output ($output | Out-String)))))
|
||||
} # end exec_wrapper
|
||||
|
||||
Function Dump-Error ($excep, $msg=$null) {
|
||||
|
||||
Reference in New Issue
Block a user