Merge pull request #24663 from kartiksubbarao/patch-2

Update augeas_cfg.py
This commit is contained in:
Justin Findlay 2015-06-15 09:18:48 -06:00
commit 5eb19c4e4d

View file

@ -130,7 +130,8 @@ def execute(context=None, lens=None, commands=()):
try:
if method == 'set':
path, value, remainder = re.split('([^\'" ]+|"[^"]+"|\'[^\']+\')$', arg, 1)
path, value, remainder = re.split('([^\'" ]+|"[^"]*"|\'[^\']*\')$', arg, 1)
path = path.rstrip()
if context:
path = os.path.join(context.rstrip('/'), path.lstrip('/'))
value = value.strip('"').strip("'")