Commit 9cb710b2 by Michael DeHaan

Merge pull request #2073 from nigelm/hosts_comment_fix

Allow end of line comments in inventory file - fixes #2072
parents 85c87e50 c0e28762
......@@ -109,6 +109,8 @@ class InventoryParser(object):
self.hosts[hn] = host
if len(tokens) > 1:
for t in tokens[1:]:
if t.startswith('#'):
break
(k,v) = t.split("=")
host.set_variable(k,v)
self.groups[active_group_name].add_host(host)
......
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