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

reviewable/pr18780/r1
Stephen Fromm 12 years ago
parent c31b86088f
commit 069be5b888

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

Loading…
Cancel
Save