From fb885e21ca582adb78cd59ed9272b6e5f619ec6c Mon Sep 17 00:00:00 2001 From: JuanSheba Date: Wed, 16 Oct 2024 13:50:04 +0100 Subject: [PATCH] Fix lint --- resources/providers/config.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/providers/config.rb b/resources/providers/config.rb index 1883cfc..d14ee0c 100644 --- a/resources/providers/config.rb +++ b/resources/providers/config.rb @@ -22,7 +22,12 @@ incidents_priority_filter = new_resource.incidents_priority_filter is_proxy = is_proxy? is_manager = is_manager? - sensors_data = YAML.load(::File.open('/root/sensors_data.yml')) rescue { 'sensors' => {} } + begin + sensors_data = YAML.load(::File.open('/root/sensors_data.yml')) + rescue + sensors_data = { 'sensors' => {} } + end + dnf_package 'logstash-rules' do only_if { is_manager }