Commit 47f59091 by Tsz Ming WONG

Allow = symbols in variable values in host inventory

parent c45f1662
...@@ -119,7 +119,7 @@ class InventoryParser(object): ...@@ -119,7 +119,7 @@ class InventoryParser(object):
if t.startswith('#'): if t.startswith('#'):
break break
try: try:
(k,v) = t.split("=") (k,v) = t.split("=", 1)
except ValueError, e: except ValueError, e:
raise errors.AnsibleError("Invalid ini entry: %s - %s" % (t, str(e))) raise errors.AnsibleError("Invalid ini entry: %s - %s" % (t, str(e)))
try: try:
......
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