fixing, improve sersors installation code
diff --git a/wally/discover/node.py b/wally/discover/node.py
index fad4f29..dc1c9b0 100644
--- a/wally/discover/node.py
+++ b/wally/discover/node.py
@@ -7,10 +7,20 @@
self.roles = roles
self.conn_url = conn_url
self.connection = None
+ self.monitor_url = None
def get_ip(self):
return urlparse.urlparse(self.conn_url).hostname
+ def get_conn_id(self):
+ host = urlparse.urlparse(self.conn_url).hostname
+ port = urlparse.urlparse(self.conn_url).port
+
+ if port is None:
+ port = 22
+
+ return host + ":" + str(port)
+
def __str__(self):
templ = "<Node: url={conn_url!r} roles={roles}" + \
" connected={is_connected}>"