diff options
author | S <S.konijn@true.nl> | 2019-03-08 06:32:32 +0100 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-03-11 11:53:23 -0700 |
commit | edd7e53b8b762158122d5cc883a007ed4f96c5a6 (patch) | |
tree | 8a13a3a484510fa0ba31ee16d1509dd1375331a5 /changelogs/fragments/win_file-hidden.yaml | |
parent | e0294275d7945f12584cb4fad3e460c295ffb445 (diff) | |
download | ansible-edd7e53b8b762158122d5cc883a007ed4f96c5a6.tar.gz |
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 3bc474bf99ad2109262366809bd735deef1312ee)
Diffstat (limited to 'changelogs/fragments/win_file-hidden.yaml')
-rw-r--r-- | changelogs/fragments/win_file-hidden.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/win_file-hidden.yaml b/changelogs/fragments/win_file-hidden.yaml new file mode 100644 index 0000000000..f13b77eb1a --- /dev/null +++ b/changelogs/fragments/win_file-hidden.yaml @@ -0,0 +1,2 @@ +bugfixes: +- win_file - Fix issue when managing hidden files and directories - https://github.com/ansible/ansible/issues/42466 |