Blame SOURCES/oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch

6272c7
From 56806b88b139d62276e8522bb3daf7d4fb02df84 Mon Sep 17 00:00:00 2001
6272c7
From: Matej Tyc <matyc@redhat.com>
6272c7
Date: Fri, 15 Oct 2021 15:05:55 +0200
6272c7
Subject: [PATCH] Represent unselected profile by an empty string
6272c7
6272c7
None can't be passed via the DBUS interface.
6272c7
---
6272c7
 org_fedora_oscap/gui/spokes/oscap.py | 4 ++--
6272c7
 1 file changed, 2 insertions(+), 2 deletions(-)
6272c7
6272c7
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
6272c7
index 4425757..36c8d7a 100644
6272c7
--- a/org_fedora_oscap/gui/spokes/oscap.py
6272c7
+++ b/org_fedora_oscap/gui/spokes/oscap.py
6272c7
@@ -244,7 +244,7 @@ def __init__(self, data, storage, payload):
6272c7
         self.__old_root_pw = None
6272c7
 
6272c7
         # used to check if the profile was changed or not
6272c7
-        self._active_profile = None
6272c7
+        self._active_profile = ""
6272c7
 
6272c7
         # prevent multiple simultaneous data fetches
6272c7
         self._fetching = False
6272c7
@@ -719,7 +719,7 @@ def _unselect_profile(self, profile_id):
6272c7
             self._revert_rootpw_changes()
6272c7
             self._rule_data = None
6272c7
 
6272c7
-        self._active_profile = None
6272c7
+        self._active_profile = ""
6272c7
 
6272c7
     @async_action_wait
6272c7
     def _select_profile(self, profile_id):