Commit 0cc73c93 by Stephen Fromm

Make exception more specific (OSError) in setup module for selinux call

parent 3fb3eae7
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment