summaryrefslogtreecommitdiffstats
path: root/iscsi.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-10-02 22:00:14 +0000
committerJeremy Katz <katzj@redhat.com>2006-10-02 22:00:14 +0000
commitaae233d64965e48a688db687e01bf28984674034 (patch)
treec30967ef7bc0766f660b2c45761b4940d7995165 /iscsi.py
parenta20997dc3daaa51abbb7a2809d4c613d3507b3b9 (diff)
downloadanaconda-aae233d64965e48a688db687e01bf28984674034.tar.gz
anaconda-aae233d64965e48a688db687e01bf28984674034.tar.xz
anaconda-aae233d64965e48a688db687e01bf28984674034.zip
2006-10-02 Jeremy Katz <katzj@redhat.com>
* iscsi.py (iscsiTarget._getPortal): Handle another error case (#208671) 2
Diffstat (limited to 'iscsi.py')
-rw-r--r--iscsi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/iscsi.py b/iscsi.py
index 7aa1a8ac6..a38957078 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -49,6 +49,9 @@ class iscsiTarget:
if not line or line.find("found!") != -1:
log.warn("no record found!")
return None
+ if len(line.split()) != 2:
+ log.warn("didn't get what we expected from iscsiadm")
+ return None
(self._portal, self._node) = line.split()
break
return self._portal