[PATCH 2/2] Handle questionInitializeDASD in cmdline mode (#605846)

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

 



In cmdline mode, we cannot prompt the user for anything.  If this method
is called, deal with it in a manner similar to the other question
methods for storage initialization.
---
 cmdline.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/cmdline.py b/cmdline.py
index 88f520f..6f3f006 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -156,6 +156,13 @@ class InstallInterface(InstallInterfaceBase):
         while 1:
             time.sleep(5)
 
+    def questionInitializeDASD(self, c, devs):
+        print(_("Can't have a question in command line mode!"))
+        print("questionInitializeDASD")
+        # don't exit
+        while 1:
+            time.sleep(5)
+
     def mainExceptionWindow(self, shortText, longTextFile):
         print(shortText)
 
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux