mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ensure parsed fields are stripped
This commit is contained in:
parent
a830a6e819
commit
bafb7b4e6e
1 changed files with 3 additions and 3 deletions
|
@ -469,10 +469,10 @@ def fcontext_get_policy(name, filetype=None, sel_type=None, sel_user=None, sel_l
|
|||
|
||||
parts = re.match(r'^({filespec}) +([a-z ]+) (.*)$'.format(**{'filespec': re.escape(name)}), current_entry_text)
|
||||
ret = {
|
||||
'filespec': parts.group(1),
|
||||
'filetype': parts.group(2),
|
||||
'filespec': parts.group(1).strip(),
|
||||
'filetype': parts.group(2).strip(),
|
||||
}
|
||||
ret.update(_context_string_to_dict(parts.group(3)))
|
||||
ret.update(_context_string_to_dict(parts.group(3).strip()))
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue