To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f920615f-b7fd-455a-82aa-9b3dcbd33dbc%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
ansible/lib/ansible/module_utils/powershell.ps1: Get-FileChecksum needs an update from this:
[System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower();
$hash = [System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower();
Otherwise it returns an array instead of a string, and win_copy will not be able to compare the two checksums correctly.
I also changed ansible/lib/ansible/modules/core/windows/win_copy.ps1 and updated:
$src_checksum.CompareTo($dest_checksum)
$src_checksum.Equals($dest_checksum)