fix some bugs
This commit is contained in:
parent
61a1839ea6
commit
91d8a14829
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ from . import vmanager
|
|||
from .forms import CreateForm, ActivateForm
|
||||
from .. import db, csrf
|
||||
from ..email import send_email
|
||||
from ..models import User, Permission, Transaction, Deployment, Service, Region, Server, Address, Domain, contact_proxmaster
|
||||
from ..models import User, Permission, Transaction, Deployment, PubVLAN, Service, Region, Server, Address, Domain, contact_proxmaster
|
||||
from ..decorators import admin_required, permission_required
|
||||
|
||||
import json
|
||||
|
@ -202,7 +202,7 @@ def remove(unit_id=0):
|
|||
except Exception as e:
|
||||
current_app.logger.error(e)
|
||||
flash('Cannot delete machine {}'.format(unit_id))
|
||||
return redirect(url_for('admin.list_recyclebin'))
|
||||
return redirect(url_for('admin.list_archive'))
|
||||
else:
|
||||
current_app.logger.warning('Deployment id:{} is protected! Cannot be removed'.format(unit_id))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue