mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Empty arguments
This commit is contained in:
parent
8d9f902d4f
commit
d930fa05d5
2 changed files with 3 additions and 1 deletions
|
@ -593,7 +593,7 @@ class ActionsMap(object):
|
|||
# * namespace define the top "name", for us it will always be
|
||||
# "yunohost" and there well be only this one
|
||||
# * actionsmap is the actual actionsmap that we care about
|
||||
for namespace, actionsmap in list(actionsmaps.items()):
|
||||
for namespace, actionsmap in actionsmaps.items():
|
||||
# Retrieve global parameters
|
||||
_global = actionsmap.pop('_global', {})
|
||||
|
||||
|
|
|
@ -315,6 +315,8 @@ class ActionsMapParser(BaseActionsMapParser):
|
|||
deprecated_alias=deprecated_alias)
|
||||
|
||||
def add_global_arguments(self, arguments):
|
||||
if not arguments:
|
||||
return
|
||||
for argument_name, argument_options in arguments.items():
|
||||
# will adapt arguments name for cli or api context
|
||||
names = self.format_arg_names(str(argument_name),
|
||||
|
|
Loading…
Add table
Reference in a new issue