mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update augeas_cfg.py
Corrects the order of parsed arguments to the augeas insert function - resolves #16383
This commit is contained in:
parent
9d1130ef8e
commit
3686dcd4c7
1 changed files with 1 additions and 1 deletions
|
@ -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'}
|
||||
|
|
Loading…
Add table
Reference in a new issue