mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Allow false and 0 as non-empty values for an app argument
This commit is contained in:
parent
41627e56d7
commit
ebdf17791a
1 changed files with 2 additions and 1 deletions
|
@ -1357,7 +1357,8 @@ def _parse_args_from_manifest(manifest, action, args={}, auth=None):
|
|||
arg_value = arg_default
|
||||
|
||||
# Validate argument value
|
||||
if not arg_value and not arg.get('optional', False):
|
||||
if (arg_value is None or arg_value == '') \
|
||||
and not arg.get('optional', False):
|
||||
raise MoulinetteError(errno.EINVAL,
|
||||
m18n.n('app_argument_required', name=arg_name))
|
||||
elif not arg_value:
|
||||
|
|
Loading…
Add table
Reference in a new issue