[PATCH rhel6-branch] Match also iface when logging into selected iface-bound iscsi target (#740105)

Vratislav Podzimek vpodzime at redhat.com
Thu Jul 18 15:54:16 UTC 2013


On Thu, 2013-07-18 at 17:22 +0200, Radek Vykydal wrote:
> ---
>  pyanaconda/ui/gui/spokes/advstorage/iscsi.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
> index be3a526..92f9e6c 100644
> --- a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
> +++ b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
> @@ -337,6 +337,10 @@ class ISCSIDialog(GUIObject):
>  
>              for node in self._discoveredNodes:
>                  if obj.notLoggedIn and node.name == obj.name:
> +                    # when binding interfaces match also interface
> +                    if self.iscsi.ifaces and \
> +                       obj.iface != self.iscsi.ifaces[node.iface]:
> +                        continue
>                      (rc, msg) = self.iscsi.log_into_node(node,
>                                                           username=credentials.username,
>                                                           password=credentials.password,
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list