Merge pull request #1776 from junegunn/inventory-group-var-ws

Allows whitespaces around assignment operators when defining group variables
This commit is contained in:
Michael DeHaan
2012-12-17 16:51:49 -08:00
3 changed files with 17 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