allow deleting external applications
This commit is contained in:
parent
808533fabd
commit
5ac175e44e
2 changed files with 12 additions and 5 deletions
|
|
@ -105,12 +105,13 @@ def delete_app(slug):
|
|||
return
|
||||
|
||||
app_status = app_obj.get_status()
|
||||
if not app_status.installed:
|
||||
app_obj.delete()
|
||||
current_app.logger.info("Success.")
|
||||
else:
|
||||
if app_status.installed and not app_obj.external:
|
||||
current_app.logger.info("Can not delete installed application, run"
|
||||
" 'uninstall' first")
|
||||
return
|
||||
|
||||
app_obj.delete()
|
||||
current_app.logger.info("Success.")
|
||||
|
||||
|
||||
@app_cli.command(
|
||||
|
|
|
|||
Reference in a new issue