mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Typo
This commit is contained in:
parent
b50bf9d7d3
commit
56ebb06d2b
1 changed files with 5 additions and 5 deletions
|
@ -2498,7 +2498,7 @@ class YunoHostArgumentFormatParser(object):
|
||||||
# we have an answer, do some post checks
|
# we have an answer, do some post checks
|
||||||
if question.value is not None:
|
if question.value is not None:
|
||||||
if question.choices and question.value not in question.choices:
|
if question.choices and question.value not in question.choices:
|
||||||
self._raise_invalide_answer(question)
|
self._raise_invalid_answer(question)
|
||||||
|
|
||||||
# this is done to enforce a certain formating like for boolean
|
# this is done to enforce a certain formating like for boolean
|
||||||
# by default it doesn't do anything
|
# by default it doesn't do anything
|
||||||
|
@ -2506,7 +2506,7 @@ class YunoHostArgumentFormatParser(object):
|
||||||
|
|
||||||
return (question.value, self.argument_type)
|
return (question.value, self.argument_type)
|
||||||
|
|
||||||
def _raise_invalide_answer(self, question):
|
def _raise_invalid_answer(self, question):
|
||||||
raise YunohostError('app_argument_choice_invalid', name=question.name,
|
raise YunohostError('app_argument_choice_invalid', name=question.name,
|
||||||
choices=', '.join(question.choices))
|
choices=', '.join(question.choices))
|
||||||
|
|
||||||
|
@ -2611,7 +2611,7 @@ class DomainArgumentParser(YunoHostArgumentFormatParser):
|
||||||
|
|
||||||
return question
|
return question
|
||||||
|
|
||||||
def _raise_invalide_answer(self, question):
|
def _raise_invalid_answer(self, question):
|
||||||
raise YunohostError('app_argument_invalid', name=question.name,
|
raise YunohostError('app_argument_invalid', name=question.name,
|
||||||
error=m18n.n('domain_unknown'))
|
error=m18n.n('domain_unknown'))
|
||||||
|
|
||||||
|
@ -2634,7 +2634,7 @@ class UserArgumentParser(YunoHostArgumentFormatParser):
|
||||||
|
|
||||||
return question
|
return question
|
||||||
|
|
||||||
def _raise_invalide_answer(self, question):
|
def _raise_invalid_answer(self, question):
|
||||||
raise YunohostError('app_argument_invalid', name=question.name,
|
raise YunohostError('app_argument_invalid', name=question.name,
|
||||||
error=m18n.n('user_unknown', user=question.value))
|
error=m18n.n('user_unknown', user=question.value))
|
||||||
|
|
||||||
|
@ -2650,7 +2650,7 @@ class AppArgumentParser(YunoHostArgumentFormatParser):
|
||||||
|
|
||||||
return question
|
return question
|
||||||
|
|
||||||
def _raise_invalide_answer(self, question):
|
def _raise_invalid_answer(self, question):
|
||||||
raise YunohostError('app_argument_invalid', name=question.name,
|
raise YunohostError('app_argument_invalid', name=question.name,
|
||||||
error=m18n.n('app_unknown'))
|
error=m18n.n('app_unknown'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue