mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
do not use assert in execution module
This commit is contained in:
parent
9d4fd4a8c8
commit
3f368de14a
1 changed files with 1 additions and 2 deletions
|
@ -3298,8 +3298,7 @@ def manage_file(name,
|
|||
# No changes actually made
|
||||
ret['changes'].pop('diff', None)
|
||||
return _error(ret, 'Parent directory not present')
|
||||
else:
|
||||
assert bool(source) is False
|
||||
else: # source != True
|
||||
if not os.path.isdir(contain_dir):
|
||||
if makedirs:
|
||||
_set_mode_and_make_dirs(name, dir_mode, mode, user, group)
|
||||
|
|
Loading…
Add table
Reference in a new issue