Merge pull request #24032 from kartiksubbarao/augeas_insert_16383

Update augeas_cfg.py
This commit is contained in:
Justin Findlay 2015-05-21 11:03:42 -06:00
commit 26d6851666

View file

@ -141,7 +141,7 @@ def execute(context=None, lens=None, commands=()):
path = os.path.join(context.rstrip('/'), path.lstrip('/'))
args = {'src': path, 'dst': dst}
elif method == 'insert':
path, where, label = re.split(' (before|after) ', arg)
label, where, path = re.split(' (before|after) ', arg)
if context:
path = os.path.join(context.rstrip('/'), path.lstrip('/'))
args = {'path': path, 'label': label, 'before': where == 'before'}