mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
We only need to reset inheritance
This commit is contained in:
parent
140c446e56
commit
cdd5065667
1 changed files with 2 additions and 2 deletions
|
@ -1046,8 +1046,8 @@ class VM:
|
|||
description = "Rsync local checkout to VM..."
|
||||
self.rsync(source, destination, description, rsync_flags)
|
||||
if self.is_windows:
|
||||
# rsync sets very strict file permissions and disables inheritance.
|
||||
# Need to reset permissions so they inherit from the parent
|
||||
# rsync sets very strict file permissions and disables inheritance
|
||||
# we only need to reset permissions so they inherit from the parent
|
||||
cmd = ["icacls", remote_path, "/T", "/reset"]
|
||||
ret = self.run(cmd, capture=True, check=False)
|
||||
if ret.returncode != 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue