Minor bug in logging of /etc/resolver/dhcp_host_domain_ng.py
The filename. line
arguments in last line of:
def _remove_hints_hosts(self, filename):
with open(filename, "r") as handle:
for line in handle:
line = line.strip()
if not line or line.startswith("#"):
continue
try:
host = line.strip().split()[1]
self._call_kresd("hints.del('%s')" % host)
except:
log("Wrong host format '%s' in host file %s " %
(filename, line), LOG_ERR)
need to be switched to line, filename
:
log("Wrong host format '%s' in host file %s " %
(line, filename), LOG_ERR)