summaryrefslogtreecommitdiff
path: root/test/TestInventory.py
diff options
context:
space:
mode:
authorPol Llovet <pol.llovet@gmail.com>2013-05-31 12:34:45 -0600
committerPol Llovet <pol.llovet@gmail.com>2013-05-31 12:34:45 -0600
commit4432c01cebf079493e8ae1a6ae0d5d0fcd07188f (patch)
tree99b9fd02f3b361f680bc86331209dee31d73b822 /test/TestInventory.py
parent4a5b567f0ccf8b29bb3ea043aeb9ad637b3343d9 (diff)
downloadansible-4432c01cebf079493e8ae1a6ae0d5d0fcd07188f.tar.gz
Handle '#' in var strings by splitting on ' #'
If someone has a " #" in a quoted var string, it will interpret that as a comment and refuse to load the inventory file due to an unbalanced quote. Noisy failure > unexpected behavior.
Diffstat (limited to 'test/TestInventory.py')
-rw-r--r--test/TestInventory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TestInventory.py b/test/TestInventory.py
index 9db3a15d45..18e3fea089 100644
--- a/test/TestInventory.py
+++ b/test/TestInventory.py
@@ -302,4 +302,4 @@ class TestInventory(unittest.TestCase):
assert vars == {'inventory_hostname': 'zeus',
'inventory_hostname_short': 'zeus',
'group_names': ['greek', 'major-god', 'ungrouped'],
- 'var_a': '1'}
+ 'var_a': '1#2'}