Merge pull request #808 from sfromm/issue800
Make exception more specific (OSError) in setup module for selinux call
This commit is contained in:
commit
fe65648ea5
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Facts(object):
|
||||||
self.facts['selinux']['status'] = 'enabled'
|
self.facts['selinux']['status'] = 'enabled'
|
||||||
try:
|
try:
|
||||||
self.facts['selinux']['policyvers'] = selinux.security_policyvers()
|
self.facts['selinux']['policyvers'] = selinux.security_policyvers()
|
||||||
except:
|
except OSError, e:
|
||||||
self.facts['selinux']['policyvers'] = 'unknown'
|
self.facts['selinux']['policyvers'] = 'unknown'
|
||||||
try:
|
try:
|
||||||
(rc, configmode) = selinux.selinux_getenforcemode()
|
(rc, configmode) = selinux.selinux_getenforcemode()
|
||||||
|
|
Loading…
Reference in a new issue