Commit fa77e659 authored by Ryan Cobb's avatar Ryan Cobb

Rescue invalid yaml files

parent a450d9c2
......@@ -13,6 +13,8 @@ module Gitlab
return false unless Dashboard::Validator.validate(dashboard_hash, project: project, dashboard_path: dashboard_path)
Dashboard::Importers::PrometheusMetrics.new(dashboard_hash, project: project, dashboard_path: dashboard_path).execute
rescue Gitlab::Config::Loader::FormatError
false
end
def execute!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment