Re: [PATCH 3/7] iscsi: rename variable in addIscsiDrive.

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

 



Ack.

--
Martin Sivák
msivak@xxxxxxxxxx
Red Hat Czech
Anaconda team / Brno, CZ

----- "Ales Kozumplik" <akozumpl@xxxxxxxxxx> wrote:

> prevents collision with the exception variables 'e' and a traceback
> when
> causing those exceptions and then clicking 'Add target' again.
> ---
>  pyanaconda/iw/advanced_storage.py |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/pyanaconda/iw/advanced_storage.py
> b/pyanaconda/iw/advanced_storage.py
> index 1b75c51..2f6b487 100644
> --- a/pyanaconda/iw/advanced_storage.py
> +++ b/pyanaconda/iw/advanced_storage.py
> @@ -117,17 +117,17 @@ def addIscsiDrive(anaconda):
>  
>      # get the initiator name if it exists and don't allow changing
>      # once set
> -    e = dxml.get_widget("iscsiInitiatorEntry")
> -    e.set_text(anaconda.storage.iscsi.initiator)
> +    initiator_entry = dxml.get_widget("iscsiInitiatorEntry")
> +    initiator_entry.set_text(anaconda.storage.iscsi.initiator)
>      if anaconda.storage.iscsi.initiatorSet:
> -        e.set_sensitive(False)
> +        initiator_entry.set_sensitive(False)
>  
>      while True:
>          rc = dialog.run()
>          if rc in [gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
>              break
>  
> -        initiator = e.get_text().strip()
> +        initiator = initiator_entry.get_text().strip()
>          if len(initiator) == 0:
>              anaconda.intf.messageWindow(_("Invalid Initiator Name"),
>                                          _("You must provide an
> initiator name."))
> -- 
> 1.7.1.1
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
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