mirror of https://github.com/Aidaho12/haproxy-wi
parent
d619497ab2
commit
ec9084c7ce
|
@ -18,7 +18,6 @@ scheduler.start()
|
|||
login_manager = LoginManager(app)
|
||||
login_manager.login_view = 'login_page'
|
||||
|
||||
|
||||
from app.routes.main import bp as main_bp
|
||||
from app.routes.overview import bp as overview_bp
|
||||
from app.routes.add import bp as add_bp
|
||||
|
@ -35,6 +34,7 @@ from app.routes.install import bp as install_bp
|
|||
from app.routes.user import bp as user_bp
|
||||
from app.routes.server import bp as server_bp
|
||||
from app.routes.admin import bp as admin_bp
|
||||
from app.routes.ha import bp as ha_bp
|
||||
|
||||
app.register_blueprint(main_bp)
|
||||
app.register_blueprint(overview_bp)
|
||||
|
@ -52,6 +52,7 @@ app.register_blueprint(install_bp, url_prefix='/install')
|
|||
app.register_blueprint(user_bp, url_prefix='/user')
|
||||
app.register_blueprint(server_bp, url_prefix='/server')
|
||||
app.register_blueprint(admin_bp, url_prefix='/admin')
|
||||
app.register_blueprint(ha_bp, url_prefix='/ha')
|
||||
|
||||
from app import login
|
||||
from app import jobs
|
||||
|
|
|
@ -13,7 +13,7 @@ from modules.server.ssh import return_ssh_keys_path
|
|||
|
||||
|
||||
def show_installation_output(error: str, output: str, service: str, rc=0):
|
||||
if error.read() and "WARNING" not in error.read():
|
||||
if error and "WARNING" not in error:
|
||||
roxywi_common.logging('Roxy-WI server', error, roxywi=1)
|
||||
raise Exception('error: ' + error)
|
||||
else:
|
||||
|
|
|
@ -3,13 +3,13 @@ from flask_login import login_required
|
|||
|
||||
from app.routes.install import bp
|
||||
from middleware import get_user_params, check_services
|
||||
import app.modules.db.sql as sql
|
||||
import app.modules.common.common as common
|
||||
import app.modules.roxywi.auth as roxywi_auth
|
||||
import app.modules.server.server as server_mod
|
||||
import app.modules.service.common as service_common
|
||||
import app.modules.service.installation as service_mod
|
||||
import app.modules.service.exporter_installation as exp_installation
|
||||
import modules.db.sql as sql
|
||||
import modules.common.common as common
|
||||
import modules.roxywi.auth as roxywi_auth
|
||||
import modules.server.server as server_mod
|
||||
import modules.service.common as service_common
|
||||
import modules.service.installation as service_mod
|
||||
import modules.service.exporter_installation as exp_installation
|
||||
|
||||
|
||||
@bp.before_request
|
||||
|
|
Loading…
Reference in New Issue