Merge branch '2018.3.3' into '2018.3'

No conflicts.
This commit is contained in:
rallytime 2018-10-30 14:36:46 -04:00
commit 422465e53c
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -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):