Update augeas_cfg.py

Corrects the order of parsed arguments to the augeas insert function - resolves #16383
This commit is contained in:
Kartik Subbarao 2015-05-20 14:40:40 -04:00
parent 9d1130ef8e
commit 3686dcd4c7

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'}