start adding unit tests, rework config compiler
diff --git a/wally/discover/node.py b/wally/discover/node.py
index dc1c9b0..8659fe6 100644
--- a/wally/discover/node.py
+++ b/wally/discover/node.py
@@ -10,9 +10,14 @@
self.monitor_url = None
def get_ip(self):
+ if self.conn_url == 'local':
+ return '127.0.0.1'
return urlparse.urlparse(self.conn_url).hostname
def get_conn_id(self):
+ if self.conn_url == 'local':
+ return '127.0.0.1'
+
host = urlparse.urlparse(self.conn_url).hostname
port = urlparse.urlparse(self.conn_url).port