[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Use a better test for when we're in text mode (#484881).



If the kickstart file does not include "text", then the display mode won't
be set in the ksdata object.  However, it is set in the instdata no matter
how "text" is specified.
---
 kickstart.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 86f3e89..08f27e9 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1261,7 +1261,7 @@ def setSteps(anaconda):
     # can't stop and prompt for missing information.  Make sure we've got
     # everything that would be provided by a missing section now and error
     # out if we don't.
-    if ksdata.displaymode.displayMode == DISPLAY_MODE_TEXT:
+    if anaconda.id.displayMode == "t":
         missingSteps = [("bootloader", "Bootloader configuration"),
                         ("group-selection", "Package selection")]
         errors = []
-- 
1.6.0.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]