[master 1/1] TUI pwpolicy setup was supposed to be in __init__ not refresh (#1208607)
bcl
installerbot-noreply at redhat.com
Mon Apr 6 19:07:00 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
---
pyanaconda/ui/tui/spokes/__init__.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/__init__.py b/pyanaconda/ui/tui/spokes/__init__.py
index 7718502..c65e285 100644
--- a/pyanaconda/ui/tui/spokes/__init__.py
+++ b/pyanaconda/ui/tui/spokes/__init__.py
@@ -110,14 +110,13 @@ def __init__(self, app, data, storage, payload, instclass, policy_name=""):
NormalTUISpoke.__init__(self, app, data, storage, payload, instclass)
self.value = None
self.policy = None
- self.policy_name = policy_name
- def refresh(self, args=None):
# Configure the password policy, if available. Otherwise use defaults.
- self.policy = self.data.anaconda.pwpolicy.get_policy(self.policy_name)
+ self.policy = self.data.anaconda.pwpolicy.get_policy(policy_name)
if not self.policy:
self.policy = self.data.anaconda.PwPolicyData()
+ def refresh(self, args=None):
self._window = []
self.value = None
return True
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/0a1d539a8eb3765824530b814456cfc37b458301
More information about the anaconda-patches
mailing list