mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07: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:
parent
03dbb1d9c4
commit
d81249994e
7 changed files with 101 additions and 73 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue