Skip to content

Commit

Permalink
fix check if pipelines are active
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Jun 20, 2024
1 parent 4fae667 commit b5d56c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,13 @@
vault_nodes node.run_state['sensors_info_all']['vault-sensor']
scanner_nodes node.run_state['sensors_info_all']['scanner-sensor']
device_nodes node.run_state['sensors_info_all']['device-sensor']
logstash_pipelines node.run_state['pipelines']
if manager_services['logstash'] && node.run_state['pipelines'] && !node.run_state['pipelines'].empty?
logstash_pipelines node.default['pipelines']
if !logstash_pipelines.nil? && !logstash_pipelines.empty?
action [:add, :register]
else
action [:remove, :deregister]
end

end

rbdswatcher_config 'Configure redborder-dswatcher' do
Expand Down

0 comments on commit b5d56c5

Please sign in to comment.