mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove leading whitespace on tags
Was converting '[admin, monitoring]' to ['admin', ' monitoring'] Now converts to ['admin', 'monitoring']
This commit is contained in:
parent
553ecaca25
commit
3b6d25b4e9
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def list_users(runas=None):
|
|||
runas=runas)
|
||||
|
||||
# func to get tags from string such as "[admin, monitoring]"
|
||||
func = lambda string: set(string[1:-1].split(','))
|
||||
func = lambda string: set([x.strip() for x in string[1:-1].split(',')])
|
||||
return _output_to_dict(res, func)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue