Commit 3ffe4204 authored by Morten Brekkevold's avatar Morten Brekkevold

include error message

parent 94b93777
......@@ -223,12 +223,12 @@ def find_reverse_dns_mismatches(kind_devices):
loopbacks = {k.loopback: k for k in kind_devices.values() if k.loopback}
lookups = reverse_lookup_dns(loopbacks.keys())
for addr, name in lookups.items():
if isinstance(name, str) and name != loopbacks[addr].name:
if isinstance(name, str) and name.upper() != loopbacks[addr].name.upper():
LOG.warning("Ikke DNS-samsvar mellom forover og revers: %s (%s=%s)",
loopbacks[addr], addr, name)
elif not isinstance(name, str):
LOG.error("Feilmelding ved forsøk på reversoppslag for %s (%s)",
addr, loopbacks[addr])
LOG.error("Feilmelding ved forsøk på reversoppslag for %s (%s): %s",
addr, loopbacks[addr], name)
def reverse_lookup_dns(addrs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment