From 27bdbf8fdd92326b04da8a9ff80d1aceeb32377a Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Thu, 7 Feb 2019 10:23:13 +0100 Subject: [selinux] string comparison using != Relevant to: #1559 Signed-off-by: Pavel Moravec --- sos/plugins/selinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit