Skip to content
Snippets Groups Projects
Commit f4676285 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Version 2009-08-31 18:58

M  src/hostinfo/util.py
parent 04809ae9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ def fqn(tree, host):
if (s.network[0] and
aton(host.ip[0:]) & aton(s.netmask[0]) == aton(s.network[0])):
return "%s.%s." % (host.name[1:],s.domain[0])
raise Exception("No subnet declaration for %s (%s)" %
raise Exception("No subnet declaration for '%s' (%s)" %
(host.name[0:], host.ip[0:]))
else:
raise Exception("'%s' not FQN, but has no ip" % host.name[0:])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment