[fix] referenced the wrong variable

This commit is contained in:
Bram 2018-06-23 00:42:07 +02:00 committed by GitHub
parent 014a39fe95
commit 79f1c1a897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2074,7 +2074,7 @@ def _parse_action_args_in_yunohost_format(args, action_args, auth=None):
if arg_default is not None:
if arg_type == 'boolean':
ask_string += ' (default: {0})'.format("yes" if arg_type == 1 else "no")
ask_string += ' (default: {0})'.format("yes" if arg_default == 1 else "no")
else:
ask_string += ' (default: {0})'.format(arg_default)