Make dashboard a top level key

- Since each yml file can hold only one dashboard.
This commit is contained in:
rpereira2 2019-04-15 14:59:59 +05:30 committed by syasonik
parent cad7a7bb24
commit 6735f4c705
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module Importers
attr_reader :content
def initialize(filename = 'common_metrics.yml')
@content = YAML.load_file(Rails.root.join('config', 'prometheus', filename)).first
@content = YAML.load_file(Rails.root.join('config', 'prometheus', filename))
end
def execute