Merge branch 'better_ini_errors2' of git://github.com/bcoca/ansible into devel

This commit is contained in:
Michael DeHaan 2013-08-10 18:01:17 -04:00
commit ee11d69697

View file

@ -112,7 +112,10 @@ class InventoryParser(object):
for t in tokens[1:]:
if t.startswith('#'):
break
(k,v) = t.split("=")
try:
(k,v) = t.split("=")
except ValueError, e:
raise errors.AnsibleError("Invalid ini entry: %s - %s" % (t, str(e)))
host.set_variable(k,v)
self.groups[active_group_name].add_host(host)