mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
fix problem with file content and high cpu/out of memory errors
This commit is contained in:
committed by
Matt Clay
parent
2ef913a288
commit
1354ef0285
@@ -58,7 +58,7 @@ Else
|
||||
|
||||
Set-Attr $result "changed" $true;
|
||||
|
||||
$logcontents = Get-Content $logfile;
|
||||
$logcontents = Get-Content $logfile | Out-String;
|
||||
Remove-Item $logfile;
|
||||
|
||||
Set-Attr $result "log" $logcontents;
|
||||
|
||||
Reference in New Issue
Block a user