fix networkslives_set -> networkslivers, don't fail if spaces in hostname
diff --git a/xos/core/views/legacyapi.py b/xos/core/views/legacyapi.py
index 0736359..e327d8e 100644
--- a/xos/core/views/legacyapi.py
+++ b/xos/core/views/legacyapi.py
@@ -155,10 +155,10 @@
             if node_id in node_ids:
                 ps_node = ps_sliver.node
 
-                ip = socket.gethostbyname(ps_node.name)
+                ip = socket.gethostbyname(ps_node.name.strip())
 
                 # search for a dedicated public IP address
-                for networkSliver in ps_sliver.networksliver_set.all():
+                for networkSliver in ps_sliver.networkslivers.all():
                     if (not networkSliver.ip):
                         continue
                     template = networkSliver.network.template