Skip to content
Snippets Groups Projects
Commit 88fee1cd authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Small bug fix

parent 3852e90c
No related branches found
No related tags found
No related merge requests found
...@@ -515,7 +515,7 @@ class AlertsConfigurationAPI(object): ...@@ -515,7 +515,7 @@ class AlertsConfigurationAPI(object):
alerts_input_file = alert_spec_reference.file alerts_input_file = alert_spec_reference.file
# allow only .yaml and .yml extensions for filename # 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.") 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 # parse the alerts specification file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment