diff --git a/app/__init__.py b/app/__init__.py index 538e933f5..f0e2ab26f 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -384,10 +384,9 @@ def infoutputs(infid=None): return render_template('outputs.html', infid=infid, outputs=outputs) - @app.route('/delete/') + @app.route('/delete//') @authorized_with_valid_token - def infdel(infid=None, force=False): - + def infdel(infid=None, force=0): access_token = oidc_blueprint.session.token['access_token'] auth_data = utils.getUserAuthData(access_token, cred, session["userid"]) headers = {"Authorization": auth_data} diff --git a/app/settings.py b/app/settings.py index d8a4de98b..997f1b2e0 100644 --- a/app/settings.py +++ b/app/settings.py @@ -24,8 +24,8 @@ class Settings: def __init__(self, config): """Creator function.""" - self.toscaDir = config['TOSCA_TEMPLATES_DIR'] + "/" - self.toscaParamsDir = config.get('TOSCA_PARAMETERS_DIR') + "/" + self.toscaDir = config.get('TOSCA_TEMPLATES_DIR', '') + "/" + self.toscaParamsDir = config.get('TOSCA_PARAMETERS_DIR', '') + "/" self.imUrl = config['IM_URL'] self.oidcUrl = config['OIDC_BASE_URL'] self.tempSlamUrl = config.get('SLAM_URL') if config.get('SLAM_URL') else "" diff --git a/app/templates/infrastructures.html b/app/templates/infrastructures.html index 52adc0191..d76a942fa 100644 --- a/app/templates/infrastructures.html +++ b/app/templates/infrastructures.html @@ -102,8 +102,8 @@