From 88fee1cd61e51f9537cc70b943d5906f15541fda Mon Sep 17 00:00:00 2001 From: Nikolay Stanchev <ns17@it-innovation.soton.ac.uk> Date: Tue, 9 Apr 2019 12:46:05 +0100 Subject: [PATCH] Small bug fix --- src/service/clmcservice/alertsapi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/clmcservice/alertsapi/views.py b/src/service/clmcservice/alertsapi/views.py index 8ce0f83..729c55d 100644 --- a/src/service/clmcservice/alertsapi/views.py +++ b/src/service/clmcservice/alertsapi/views.py @@ -515,7 +515,7 @@ class AlertsConfigurationAPI(object): alerts_input_file = alert_spec_reference.file # allow only .yaml and .yml extensions for filename - if not (alerts_input_filename.lower().endswith('.yaml') and not alerts_input_filename.lower().endswith('.yml')): + if not alerts_input_filename.lower().endswith('.yaml') and not alerts_input_filename.lower().endswith('.yml'): raise HTTPBadRequest("Request to this API endpoint must include a (YAML) file input referenced as 'alert-spec' representing the TOSCA Alerts Specification.") # parse the alerts specification file -- GitLab