mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] make function name clearer, it's not only for actions
This commit is contained in:
parent
4084bddb54
commit
e2f43b43a5
1 changed files with 3 additions and 3 deletions
|
@ -2278,7 +2278,7 @@ def _parse_args_from_manifest(manifest, action, args={}):
|
|||
return OrderedDict()
|
||||
|
||||
action_args = manifest['arguments'][action]
|
||||
return _parse_action_args_in_yunohost_format(args, action_args)
|
||||
return _parse_args_in_yunohost_format(args, action_args)
|
||||
|
||||
|
||||
def _parse_args_for_action(action, args={}):
|
||||
|
@ -2302,10 +2302,10 @@ def _parse_args_for_action(action, args={}):
|
|||
|
||||
action_args = action['arguments']
|
||||
|
||||
return _parse_action_args_in_yunohost_format(args, action_args)
|
||||
return _parse_args_in_yunohost_format(args, action_args)
|
||||
|
||||
|
||||
def _parse_action_args_in_yunohost_format(args, action_args):
|
||||
def _parse_args_in_yunohost_format(args, action_args):
|
||||
"""Parse arguments store in either manifest.json or actions.json
|
||||
"""
|
||||
from yunohost.domain import (domain_list, _get_maindomain,
|
||||
|
|
Loading…
Add table
Reference in a new issue