Allows whitespaces around assignment operators

when defining group variables
This commit is contained in:
Junegunn Choi
2012-12-14 20:43:29 +09:00
parent 23f2a7fc7e
commit daf797804b
3 changed files with 15 additions and 3 deletions

View File

@@ -142,7 +142,9 @@ class TestInventory(unittest.TestCase):
print vars
expected = dict(
a='1', b='2', c='3', d='10002', rga='1', rgb='2', rgc='3',
a='1', b='2', c='3', d='10002', e='10003', f='10004 != 10005',
g=' g ', h=' h ', i="' i \"", j='" j',
rga='1', rgb='2', rgc='3',
inventory_hostname='rtp_a', inventory_hostname_short='rtp_a',
group_names=[ 'eastcoast', 'nc', 'redundantgroup', 'redundantgroup2', 'redundantgroup3', 'rtp', 'us' ]
)

View File

@@ -34,6 +34,12 @@ rgc=3
b=10000
c=10001
d=10002
e = 10003
f = 10004 != 10005
g = " g "
h = ' h '
i = ' i "
j = " j
[rtp]
rtp_a