From 1354ef0285393e3a4c4648628e6fa2f6b5857877 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Kliemeck Date: Mon, 14 Dec 2015 16:04:13 +0100 Subject: [PATCH] fix problem with file content and high cpu/out of memory errors --- lib/ansible/modules/windows/win_msi.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/windows/win_msi.ps1 b/lib/ansible/modules/windows/win_msi.ps1 index 2feb5fc41c..a5b933b569 100644 --- a/lib/ansible/modules/windows/win_msi.ps1 +++ b/lib/ansible/modules/windows/win_msi.ps1 @@ -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;