mirror of https://github.com/ansible/ansible.git
Update file module to not recurse when setting ownership
This updates set_owner_if_different() and set_group_if_different() to not implicitly recurse when setting ownership (whether user or group). It drops the os.system() call and replaces it with os.chown(). Resolves issue #825. The recursion should be explicit. A recurse=yes|no option should be added to the file module.reviewable/pr18780/r1
parent
310c4b5eff
commit
352f8339ea
Loading…
Reference in New Issue