Merge branch '2018.3' into fix-salt-utils-dns-lookup

This commit is contained in:
Ty Hahn 2019-01-26 06:55:49 +09:00 committed by GitHub
commit 0ddfad1270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3276,7 +3276,7 @@ def directory(name,
ret, _ = __salt__['file.check_perms'](
full, ret, user, group, file_mode, None, follow_symlinks)
except CommandExecutionError as exc:
if not exc.strerror.endswith('does not exist'):
if not exc.strerror.startswith('Path not found'):
errors.append(exc.strerror)
if check_dirs: