From 1d9bfd13145273c14aac475fccc6b50b9957bc4b Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Tue, 23 Aug 2016 12:40:42 +0200
Subject: [PATCH 1/3] Properly set the seen property for root passwords
It is the property of the whole kickstart command object not the password
string.
Resolves: rhbz#1357603
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
---
org_fedora_oscap/gui/spokes/oscap.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index 0539d5c..8f94601 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -620,13 +620,13 @@ class OSCAPSpoke(NormalSpoke):
if not report_only:
self.__old_root_pw = self.data.rootpw.password
self.data.rootpw.password = None
- self.__old_root_pw_seen = self.data.rootpw.password.seen
- self.data.rootpw.password.seen = False
+ self.__old_root_pw_seen = self.data.rootpw.seen
+ self.data.rootpw.seen = False
def _revert_rootpw_changes(self):
if self.__old_root_pw is not None:
self.data.rootpw.password = self.__old_root_pw
- self.data.rootpw.password.seen = self.__old_root_pw_seen
+ self.data.rootpw.seen = self.__old_root_pw_seen
self.__old_root_pw = None
self.__old_root_pw_seen = None
--
2.7.4