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

[PATCH 8/8] Fix backtrace due to iscsi.getNode() not finding the iscsi node



---
 storage/iscsi.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/iscsi.py b/storage/iscsi.py
index 9629596..974fc89 100644
--- a/storage/iscsi.py
+++ b/storage/iscsi.py
@@ -294,7 +294,7 @@ class iscsi(object):
     def getNode(self, name, address, port):
         for node in self.nodes:
             if node.name == name and node.address == address and \
-               node.port == port:
+               node.port == int(port):
                 return node
 
         return None
-- 
1.6.2.2


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