Skip to content

Commit 771435d

Browse files
committed
now ini vars are typed
Signed-off-by: Brian Coca <[email protected]>
1 parent 0ee236b commit 771435d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ansible/inventory/ini.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from ansible import errors
2626
import shlex
2727
import re
28+
import ast
2829

2930
class InventoryParser(object):
3031
"""
@@ -116,7 +117,7 @@ def _parse_base_groups(self):
116117
(k,v) = t.split("=")
117118
except ValueError, e:
118119
raise errors.AnsibleError("Invalid ini entry: %s - %s" % (t, str(e)))
119-
host.set_variable(k,v)
120+
host.set_variable(k,ast.literal_eval(v))
120121
self.groups[active_group_name].add_host(host)
121122

122123
# [southeast:children]

0 commit comments

Comments
 (0)