mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00:00
Make exception more specific (OSError) in setup module for selinux call
This commit is contained in:
@@ -126,7 +126,7 @@ class Facts(object):
|
||||
self.facts['selinux']['status'] = 'enabled'
|
||||
try:
|
||||
self.facts['selinux']['policyvers'] = selinux.security_policyvers()
|
||||
except:
|
||||
except OSError, e:
|
||||
self.facts['selinux']['policyvers'] = 'unknown'
|
||||
try:
|
||||
(rc, configmode) = selinux.selinux_getenforcemode()
|
||||
|
||||
Reference in New Issue
Block a user