mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Simplify return value to "True".
It is fine to return True here because, in the event that the directory cannot be created, an exception can be raised anyway.
This commit is contained in:
parent
13022c5cc4
commit
0e1ebea5a4
1 changed files with 1 additions and 1 deletions
|
@ -4586,7 +4586,7 @@ def mkdir(dir_path,
|
|||
# to follow the principal of least surprise method.
|
||||
makedirs_perms(directory, user, group, mode)
|
||||
|
||||
return os.path.isdir(directory)
|
||||
return True
|
||||
|
||||
|
||||
def makedirs_(path,
|
||||
|
|
Loading…
Add table
Reference in a new issue