mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Augeas: fix pylint and documentation
+ Fix pylint + Add setm support in the documentation
This commit is contained in:
parent
ee97896cba
commit
cad0f2b46e
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ def execute(context=None, lens=None, commands=()):
|
|||
value = value.strip('"').strip("'")
|
||||
args = {'path': path, 'value': value}
|
||||
elif method == 'setm':
|
||||
base, sub, value = re.findall('([^\'" ]+|"[^"]*"|\'[^\']*\')', arg)
|
||||
base, sub, value = re.findall('([^\'" ]+|"[^"]*"|\'[^\']*\')', arg)
|
||||
base = base.rstrip()
|
||||
if context:
|
||||
base = os.path.join(context.rstrip('/'), base.lstrip('/'))
|
||||
|
|
|
@ -76,7 +76,7 @@ def change(name, context=None, changes=None, lens=None, **kwargs):
|
|||
|
||||
changes
|
||||
List of changes that are issued to Augeas. Available commands are
|
||||
``set``, ``mv``/``move``, ``ins``/``insert``, and ``rm``/``remove``.
|
||||
``set``, ``setm``, ``mv``/``move``, ``ins``/``insert``, and ``rm``/``remove``.
|
||||
|
||||
lens
|
||||
The lens to use, needs to be suffixed with `.lns`, e.g.: `Nginx.lns`. See
|
||||
|
|
Loading…
Add table
Reference in a new issue