mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'fix_selinux_debian' of https://github.com/mscherer/ansible into mscherer-fix_selinux_debian
This commit is contained in:
commit
1f674c4a50
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ class AnsibleModule(object):
|
||||||
if not HAVE_SELINUX or not self.selinux_enabled():
|
if not HAVE_SELINUX or not self.selinux_enabled():
|
||||||
return context
|
return context
|
||||||
try:
|
try:
|
||||||
ret = selinux.lgetfilecon(self._to_filesystem_str(path))
|
ret = selinux.lgetfilecon_raw(self._to_filesystem_str(path))
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
if e.errno == errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
self.fail_json(path=path, msg='path %s does not exist' % path)
|
self.fail_json(path=path, msg='path %s does not exist' % path)
|
||||||
|
|
Loading…
Reference in a new issue