mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2018.3.3' into '2018.3'
No conflicts.
This commit is contained in:
commit
422465e53c
1 changed files with 2 additions and 2 deletions
|
@ -3204,7 +3204,7 @@ def directory(name,
|
|||
# NOTE: Should this be enough to stop the whole check altogether?
|
||||
if recurse_set:
|
||||
if 'user' in recurse_set:
|
||||
if user:
|
||||
if user or isinstance(user, int):
|
||||
uid = __salt__['file.user_to_uid'](user)
|
||||
# file.user_to_uid returns '' if user does not exist. Above
|
||||
# check for user is not fatal, so we need to be sure user
|
||||
|
@ -3222,7 +3222,7 @@ def directory(name,
|
|||
else:
|
||||
user = None
|
||||
if 'group' in recurse_set:
|
||||
if group:
|
||||
if group or isinstance(group, int):
|
||||
gid = __salt__['file.group_to_gid'](group)
|
||||
# As above with user, we need to make sure group exists.
|
||||
if isinstance(gid, six.string_types):
|
||||
|
|
Loading…
Add table
Reference in a new issue