[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)



> 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?

- Chris


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