1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #743 from akhayyat/devel

Allow = symbols in variable values in host inventory
This commit is contained in:
Michael DeHaan 2012-07-31 20:41:31 -07:00
commit db9955d3df

View file

@ -168,7 +168,7 @@ class InventoryParser(object):
if line.find("=") == -1: if line.find("=") == -1:
raise errors.AnsibleError("variables assigned to group must be in key=value form") raise errors.AnsibleError("variables assigned to group must be in key=value form")
else: else:
(k,v) = line.split("=") (k,v) = line.split("=",1)
group.set_variable(k,v) group.set_variable(k,v)