Augeas: fix pylint and documentation

+ Fix pylint
+ Add setm support in the documentation
This commit is contained in:
Frederic Brin 2015-07-25 15:02:16 +02:00
parent ee97896cba
commit cad0f2b46e
2 changed files with 2 additions and 2 deletions

View file

@ -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('/'))

View file

@ -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