FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 08-22-2011, 12:20 PM
Ales Kozumplik
 
Default Convert a None from libiscsi.discover() to an empty list.

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]

--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org