diff options
author | Pol Llovet <pol.llovet@gmail.com> | 2013-05-31 12:34:45 -0600 |
---|---|---|
committer | Pol Llovet <pol.llovet@gmail.com> | 2013-05-31 12:34:45 -0600 |
commit | 4432c01cebf079493e8ae1a6ae0d5d0fcd07188f (patch) | |
tree | 99b9fd02f3b361f680bc86331209dee31d73b822 /test/TestInventory.py | |
parent | 4a5b567f0ccf8b29bb3ea043aeb9ad637b3343d9 (diff) | |
download | ansible-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.py | 2 |
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'} |