Merge pull request #11115 from jhawkesworth/second_go_at_fixing_1404

Part fix for https://github.com/ansible/ansible-modules-core/issues/1404 (replaces #11086)
This commit is contained in:
Brian Coca 2015-06-10 20:43:32 -04:00
commit aa6e204b6e
2 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ Function Get-FileMd5($path)
{
$sp = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider;
$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)