mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24663 from kartiksubbarao/patch-2
Update augeas_cfg.py
This commit is contained in:
commit
5eb19c4e4d
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ def execute(context=None, lens=None, commands=()):
|
|||
|
||||
try:
|
||||
if method == 'set':
|
||||
path, value, remainder = re.split('([^\'" ]+|"[^"]+"|\'[^\']+\')$', arg, 1)
|
||||
path, value, remainder = re.split('([^\'" ]+|"[^"]*"|\'[^\']*\')$', arg, 1)
|
||||
path = path.rstrip()
|
||||
if context:
|
||||
path = os.path.join(context.rstrip('/'), path.lstrip('/'))
|
||||
value = value.strip('"').strip("'")
|
||||
|
|
Loading…
Add table
Reference in a new issue