mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Restore full user permissions when failing to delete
This commit is contained in:
parent
bef5e66c5b
commit
b264114901
1 changed files with 2 additions and 1 deletions
|
@ -1358,7 +1358,8 @@ class TestDaemon(object):
|
|||
Clean out the tmp files
|
||||
'''
|
||||
def remove_readonly(func, path, excinfo):
|
||||
os.chmod(path, stat.S_IWRITE)
|
||||
# Give full permissions to owner
|
||||
os.chmod(path, stat.S_IRWXU)
|
||||
func(path)
|
||||
|
||||
for dirname in (TMP, TMP_STATE_TREE, TMP_PRODENV_STATE_TREE):
|
||||
|
|
Loading…
Add table
Reference in a new issue