aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-02-07 10:23:13 +0100
committerBryn M. Reeves <bmr@redhat.com>2019-03-20 15:57:20 +0000
commit27bdbf8fdd92326b04da8a9ff80d1aceeb32377a (patch)
treed36d6550262c923178233f58dda087ec88930fe1
parent0695dc41c4320e6ecc29f576b7394485d4d35b52 (diff)
downloadsos-27bdbf8fdd92326b04da8a9ff80d1aceeb32377a.tar.gz
[selinux] string comparison using !=
Relevant to: #1559 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/selinux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
index 3fe24e24..c9bc4584 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -28,7 +28,7 @@ class SELinux(Plugin, RedHatPlugin):
self.add_cmd_output('sestatus')
state = self.get_command_output('getenforce')['output']
- if state is not 'Disabled':
+ if state != 'Disabled':
self.add_cmd_output([
'ps auxZww',
'sestatus -v',