Commit d417525b authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Make duplicate='ok' apply to nested dhcp ranges

parent eba4dc91
......@@ -320,7 +320,7 @@ def get_hosts(tree, with_alias=True):
if check and address in seen:
old_name = seen[address][0]
old_check = seen[address][1]
if check.duplicate[0] != 'ok' or old_check.duplicate[0] != 'ok':
if check.duplicate[0:] != 'ok' or old_check.duplicate[0:] != 'ok':
raise util.HostinfoException('Duplicate address %s %s %s'
% (address, old_name, name),
where=[old_check, check])
......
Supports Markdown
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