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

Re: [PATCH] Add default iSCSI initiator name in rescue mode (#594434)


On 05/21/2010 05:44 PM, Chris Lumens wrote:
diff --git a/textw/add_drive_text.py b/textw/add_drive_text.py
index 663d45d..e805618 100644
--- a/textw/add_drive_text.py
+++ b/textw/add_drive_text.py
@@ -135,11 +135,13 @@ class addDriveDialog(object):
                                 "'linux asknetwork'")
              return INSTALL_BACK

+        iname = storage.iscsi.iscsi().initiator
          (button, entries) = EntryWindow(screen,
                                          _("Configure iSCSI Parameters"),
                                          _("To use iSCSI disks, you must provide the address of your iSCSI target and the iSCSI initiator name you've configured for your host."),
                                          prompts = [ _("Target IP Address"),
-                                                    _("iSCSI Initiator Name"),
+                                                    (_("iSCSI Initiator Name"),
+                                                     iname),
                                                      _("CHAP username"),
                                                      _("CHAP password"),
                                                      _("Reverse CHAP username"),

Do you have a reference for including a tuple in the list of prompts?

I found this while googling for more info on EntryWindow, first hit
when searching for "newt EntryWindow":

And I tested the patch and it works.



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