anaconda: display correct root password status
This commit is contained in:
parent
16f3739ebe
commit
e345814639
@ -84,10 +84,10 @@ class PasswordSpoke(NormalSpoke):
|
|||||||
def status(self):
|
def status(self):
|
||||||
if self._error:
|
if self._error:
|
||||||
return _("Error setting root password")
|
return _("Error setting root password")
|
||||||
if self.data.rootpw.password:
|
if self.data.rootpw.lock:
|
||||||
return _("Root password is set")
|
|
||||||
elif self.data.rootpw.lock:
|
|
||||||
return _("Root account is disabled")
|
return _("Root account is disabled")
|
||||||
|
elif self.data.rootpw.password:
|
||||||
|
return _("Root password is set")
|
||||||
else:
|
else:
|
||||||
return _("Root password is not set")
|
return _("Root password is not set")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user