summaryrefslogtreecommitdiff
path: root/cxmanage_api/node.py
diff options
context:
space:
mode:
Diffstat (limited to 'cxmanage_api/node.py')
-rw-r--r--cxmanage_api/node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index 329c301..784f7f5 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -119,10 +119,10 @@ class Node(object):
self._guid = None
def __eq__(self, other):
- return isinstance(other, Node) and self.guid == other.guid
+ return isinstance(other, Node) and self.ip_address == other.ip_address
def __hash__(self):
- return hash(self.guid)
+ return hash(self.ip_address)
def __str__(self):
return 'Node %s (%s)' % (self.node_id, self.ip_address)