diff options
| author | Martin Sivak <msivak@redhat.com> | 2010-08-26 16:25:20 +0200 |
|---|---|---|
| committer | Martin Sivak <msivak@redhat.com> | 2010-08-26 16:25:20 +0200 |
| commit | b5786fb338b592404fd5beeb51ab65b0709ab843 (patch) | |
| tree | 72f94925db0d34432fede81ab8a3e72f804a6224 | |
| parent | 81dd0cf913c8893d6b3007fae4ae7966bedf4074 (diff) | |
| download | firstaidkit-b5786fb338b592404fd5beeb51ab65b0709ab843.tar.gz firstaidkit-b5786fb338b592404fd5beeb51ab65b0709ab843.tar.xz firstaidkit-b5786fb338b592404fd5beeb51ab65b0709ab843.zip | |
Add proper behaviour to OpenSCAP result NOT_CHECKED
| -rw-r--r-- | plugins/openscap_plugin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/openscap_plugin.py b/plugins/openscap_plugin.py index fcb2b4d..c20002c 100644 --- a/plugins/openscap_plugin.py +++ b/plugins/openscap_plugin.py @@ -111,6 +111,13 @@ class OpenSCAPPlugin(Plugin): self._result=ReturnSuccess def oscap_callback(self, Msg, Plugin): + if Msg.user2num == openscap.OSCAP.XCCDF_RESULT_NOT_SELECTED: + if Plugin.continuing(): + return 0 + else: + return 1 + + try: Id = Msg.user1str Issue = Plugin._issues.get(Id, None) |
