8198: consider X-Forwarded-For header by way of request.repote_ip while setting node...
[arvados.git] / doc / install / install-compute-node.html.textile.liquid
index 7d13f773a628c34db47fe5d9ba7f8b54e47eabfd..b1e377aa8eed160a179e81d59479eeec20fd2f40 100644 (file)
@@ -152,8 +152,7 @@ if ! test -f /root/node.json ; then
 import arvados, json, socket
 fqdn = socket.getfqdn()
 hostname, _, domain = fqdn.partition('.')
-ip_address = socket.gethostbyname(fqdn)
-node = arvados.api('v1').nodes().create(body={'hostname': hostname, 'domain': domain, 'ip_address': ip_address}).execute()
+node = arvados.api('v1').nodes().create(body={'hostname': hostname, 'domain': domain}).execute()
 with open('/root/node.json', 'w') as node_file:
     json.dump(node, node_file, indent=2)
 EOF