--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
function md5hash($path)
{
$fullPath = Resolve-Path $path
$md5 = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
$file = [System.IO.File]::Open($fullPath,[System.IO.Filemode]::Open, [System.IO.FileAccess]::Read)
[System.BitConverter]::ToString($md5.ComputeHash($file))
$file.Dispose()
}
--
PowerShell : Cannot find an overload for "CompareTo" and the argument count: "1".At line:1 char:1+ PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -File "C:\Us ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (Cannot find an ...ent count: "1".:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError At C:\Users\localadmin\AppData\Local\Temp\ansible-tmp-1416867885.79-151089386884966\win_copy.ps1:223 char:9+ If (! $src_md5.CompareTo($dest_md5))+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodException + FullyQualifiedErrorId : MethodCountCouldNotFindBest Cannot find an overload for "CompareTo" and the argument count: "1".At C:\Users\localadmin\AppData\Local\Temp\ansible-tmp-1416867885.79-151089386884966\win_copy.ps1:230 char:10+ If ( $src_md5.CompareTo($dest_md5))+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodException + FullyQualifiedErrorId : MethodCountCouldNotFindBest { "changed": false, "checksum": [ "3688374325b992def12793500307566d", "" ]}
ANSIBLE_KEEP_REMOTE_FILES=1 TEST_FLAGS="-t test_win_template -vvv" make test_winrm
--
--
I would also like to know when this stuff will be out please.
-- Sent from a mobile device --
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-devel/Jl5qP73CiKo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-deve...@googlegroups.com.
In case anyone is still watching this thread, win_copy, win_file and win_template have now been merged into latest devel.
$ find . -name "win_copy*"
./lib/ansible/modules/core/windows/win_copy.ps1
./lib/ansible/modules/core/windows/win_copy.py
./v1/ansible/modules/core/windows/win_copy.ps1
./v1/ansible/modules/core/windows/win_copy.py
./v1/ansible/runner/action_plugins/win_copy.py