mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
windows: fix for checking locked system files (#30665)
* fix for checking locked system files * moved functions to share module util and created tests * fixed windows-paths test based on win_stat changes
This commit is contained in:
parent
5e20fd0943
commit
e16e6313c7
12 changed files with 166 additions and 29 deletions
|
@ -82,7 +82,7 @@
|
|||
- trailing_result|success
|
||||
- trailing_result.stat.attributes == 'Directory'
|
||||
- trailing_result.stat.exists == true
|
||||
- trailing_result.stat.path == trailing
|
||||
- trailing_result.stat.path == no_quotes_single # path is without the trailing \
|
||||
|
||||
- name: Set variables in key=value syntax
|
||||
set_fact:
|
||||
|
@ -178,7 +178,7 @@
|
|||
- trailing_result|success
|
||||
- trailing_result.stat.attributes == 'Directory'
|
||||
- trailing_result.stat.exists == true
|
||||
- trailing_result.stat.path == trailing
|
||||
- trailing_result.stat.path == no_quotes_single # path is without the trailing \
|
||||
|
||||
- name: Test tab path {{ tab }}
|
||||
win_stat:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue