mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Sanitize dict key
This commit is contained in:
parent
1d052ab5c3
commit
44ed6c8b4d
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ def parse_dict(action_map):
|
|||
if 'dest' in arg_params: name = arg_params['dest']
|
||||
elif arg_fullname: name = arg_fullname[2:]
|
||||
else: name = arg_name
|
||||
name = name.replace('-', '_')
|
||||
patterns[name] = arg_params['pattern']
|
||||
del arg_params['pattern']
|
||||
|
||||
|
|
Loading…
Reference in a new issue