Re: [rhel6-branch] Convert a None from libiscsi.discover() to an empty list.

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

 



ack

On Mon, 2011-08-22 at 14:20 +0200, Ales Kozumplik wrote:
> Resolves: rhbz#732380
> ---
>  storage/iscsi.py |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/iscsi.py b/storage/iscsi.py
> index 625e029..c75b977 100644
> --- a/storage/iscsi.py
> +++ b/storage/iscsi.py
> @@ -244,6 +244,8 @@ class iscsi(object):
>          found_nodes = libiscsi.discover_sendtargets(address=ipaddr,
>                                                      port=int(port),
>                                                      authinfo=authinfo)
> +        if found_nodes is None:
> +            return []
>          # only return the nodes we are not logged into yet
>          return [n for n in found_nodes if n not in self.nodes]
>  

-- 
Martin Gracik <mgracik@xxxxxxxxxx>

_______________________________________________
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