From daee298cb662f1d3e6b88b20b351302ab36cb8f9 Mon Sep 17 00:00:00 2001 From: Trond Hindenes Date: Tue, 16 Jun 2015 14:20:34 +0000 Subject: [PATCH] Bugfix: win_checksum.ps1 --- v1/ansible/module_utils/powershell.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/ansible/module_utils/powershell.ps1 b/v1/ansible/module_utils/powershell.ps1 index 9606f47783..a11e316989 100644 --- a/v1/ansible/module_utils/powershell.ps1 +++ b/v1/ansible/module_utils/powershell.ps1 @@ -151,7 +151,7 @@ Function Get-FileChecksum($path) { $sp = new-object -TypeName System.Security.Cryptography.SHA1CryptoServiceProvider; $fp = [System.IO.File]::Open($path, [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read); - [System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower(); + $hash = [System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower(); $fp.Dispose(); } ElseIf (Test-Path -PathType Container $path)