mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Check if dir_mode is passed before trying to change the mode
Thanks again to @Mistobaan for walking me through this fix. Fixes #1631
This commit is contained in:
parent
9b9c8dbe51
commit
58d36b186d
@ -1384,7 +1384,9 @@ def recurse(name,
|
||||
if os.path.isdir(fn_) and include_empty:
|
||||
#create empty dir
|
||||
os.mkdir(dest)
|
||||
__salt__['file.set_mode'](dest, dir_mode)
|
||||
|
||||
if dir_mode:
|
||||
__salt__['file.set_mode'](dest, dir_mode)
|
||||
else:
|
||||
# The destination file is not present, make it
|
||||
# FIXME: no metadata (ownership, permissions) available
|
||||
|
Loading…
Reference in New Issue
Block a user