You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have commented out lines of host names and IPs in our /etc/hosts that we'd rather not remove at this time. However, make-lighttpd-proxyconf.py still parses those old and invalid lines. Modifying the script to the code below fixes the problem.
Thanks!
#!/usr/bin/python
import os, re
port = os.environ["DISCO_PORT"]
print "proxy.server = ("
r = re.compile("^(\d+\.\d+\.\d+\.\d+)\s+(.*)", re.MULTILINE)
for x in re.finditer(r, file("/etc/hosts").read()):
ip, host = x.groups()
print '"/disco/node/%s/" => (("host" => "%s", "port" => %s)),' %\
(host, ip, port)
print ")"
The text was updated successfully, but these errors were encountered:
We have commented out lines of host names and IPs in our /etc/hosts that we'd rather not remove at this time. However, make-lighttpd-proxyconf.py still parses those old and invalid lines. Modifying the script to the code below fixes the problem.
Thanks!
The text was updated successfully, but these errors were encountered: