mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix problem with file content and high cpu/out of memory errors
This commit is contained in:
parent
2ef913a288
commit
1354ef0285
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue