[PATCH 05/12] Remove a redundant error property from UserSpoke
David Shea
dshea at redhat.com
Fri Oct 4 18:28:11 UTC 2013
---
pyanaconda/ui/gui/spokes/user.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 2b9e089..25b287a 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -220,7 +220,6 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
def __init__(self, *args):
NormalSpoke.__init__(self, *args)
self._oldweak = None
- self._error = False
def initialize(self):
NormalSpoke.initialize(self)
@@ -332,9 +331,7 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
@property
def status(self):
- if self._error:
- return _("Error creating user account: %s") % self._error
- elif len(self.data.user.userList) == 0:
+ if len(self.data.user.userList) == 0:
return _("No user will be created")
elif self._wheel.name in self.data.user.userList[0].groups:
return _("Administrator %s will be created") % self.data.user.userList[0].name
--
1.8.3.1
More information about the anaconda-patches
mailing list