Commit 1dadd84e authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Version 2012-10-15 20:00

M  src/hostinfo/role.py
parent 9edafa1e
......@@ -9,6 +9,11 @@ def generate(tree, host, roles):
if role in by_role:
raise Exception("Duplicate roles '%s' on %s, %s" %
(role, host, by_role[role]) )
by_role[role] = 1
by_role[role] = r.name[1]
pass
for r in roles:
if not r in by_role:
raise Exception("Role '%s' not found in %s" %
(r, by_role.keys()))
return result
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