mirror of https://github.com/ansible/ansible.git
Fixed win_file crash with hidden files (#52584)
* Fixed crash with hidden files
added "-force" parameter on "Get-Item" cmdlet. this is needed to get file info if the file is "hidden"
without this option modules like win_file, win_template, win_copy crashes on hidden files. this is because with "test-path" it sees that the file exists, but "get-item" can't get the file info.
for more information on "-force option": https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-item
* Add changelog and integration tests
* fix tests for older Windows versions
(cherry picked from commit 3bc474bf99
)
pull/53657/head
parent
e0294275d7
commit
edd7e53b8b
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- win_file - Fix issue when managing hidden files and directories - https://github.com/ansible/ansible/issues/42466
|
Loading…
Reference in New Issue