[fix] typo

This commit is contained in:
Laurent Peuch 2016-11-28 14:54:13 +01:00
parent 76a294b284
commit a7289c447a
2 changed files with 4 additions and 4 deletions

View file

@ -437,7 +437,7 @@ app:
full: --args
help: Serialized arguments for app script (i.e. "domain=domain.tld&path=/path")
-n:
full: --no-remove-on-fail
full: --no-remove-on-failure
help: Debug option to avoid removing the app on a failed installation
### app_remove() TODO: Write help

View file

@ -440,7 +440,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
logger.success(m18n.n('upgrade_complete'))
def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
def app_install(auth, app, label=None, args=None, no_remove_on_failure=False):
"""
Install apps
@ -448,7 +448,7 @@ def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
app -- Name, local path or git URL of the app to install
label -- Custom name for the app
args -- Serialize arguments for app installation
no_remove_on_fail -- Debug option to avoid removing the app on a failed installation
no_remove_on_failure -- Debug option to avoid removing the app on a failed installation
"""
from yunohost.hook import hook_add, hook_remove, hook_exec
@ -542,7 +542,7 @@ def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
logger.exception(m18n.n('unexpected_error'))
finally:
if install_retcode != 0:
if not no_remove_on_fail:
if not no_remove_on_failure:
# Setup environment for remove script
env_dict_remove = {}
env_dict_remove["YNH_APP_ID"] = app_id