Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsotofernandez committed Oct 16, 2024
1 parent 833d9ee commit fb885e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit fb885e2

Please sign in to comment.