diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-02-07 10:23:13 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-20 15:57:20 +0000 |
commit | 27bdbf8fdd92326b04da8a9ff80d1aceeb32377a (patch) | |
tree | d36d6550262c923178233f58dda087ec88930fe1 | |
parent | 0695dc41c4320e6ecc29f576b7394485d4d35b52 (diff) | |
download | sos-27bdbf8fdd92326b04da8a9ff80d1aceeb32377a.tar.gz |
[selinux] string comparison using !=
Relevant to: #1559
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/selinux.py | 2 |
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', |