mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Optionnal connection attribute
This commit is contained in:
parent
c3253b24ac
commit
1d20ac2031
1 changed files with 4 additions and 3 deletions
|
@ -459,9 +459,10 @@ def parse_dict(action_dict):
|
|||
if 'actions' in category_params:
|
||||
for action, action_params in category_params['actions'].items():
|
||||
# Connections settings
|
||||
for connection in connections_available:
|
||||
if connection in action_params['connections']:
|
||||
connections_enabled.append(connection)
|
||||
if 'connections' in action_params:
|
||||
for connection in connections_available:
|
||||
if connection in action_params['connections']:
|
||||
connections_enabled.append(connection)
|
||||
if 'action_help' not in action_params: action_params['action_help'] = ''
|
||||
parsers[category + '_' + action] = subparsers_action[category].add_parser(action, help=action_params['action_help'])
|
||||
# Set the action s related function
|
||||
|
|
Loading…
Add table
Reference in a new issue