Skip to content

Commit

Permalink
change 'or' to 'and' and add same check to mobility pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Jun 21, 2024
1 parent 4fae667 commit e70f657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/libraries/get_pipelines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def get_pipelines
logstash_pipelines.push('sflow-pipeline') unless sensors['flow-sensor'].empty?
logstash_pipelines.push('meraki-pipeline') unless sensors['meraki-sensor'].empty?
logstash_pipelines.push('monitor-pipeline') unless namespaces.empty?
logstash_pipelines.push('location-pipeline') unless sensors['ale-sensor'].empty? || sensors['mse-sensor'].empty? || sensors['flow-sensor'].empty? || sensors['arubacentral-sensor'].empty?
logstash_pipelines.push('mobility-pipeline')
logstash_pipelines.push('location-pipeline') unless sensors['ale-sensor'].empty? && sensors['mse-sensor'].empty? && sensors['flow-sensor'].empty? && sensors['arubacentral-sensor'].empty?
logstash_pipelines.push('mobility-pipeline') unless sensors['ale-sensor'].empty? && sensors['mse-sensor'].empty? && sensors['flow-sensor'].empty? && sensors['arubacentral-sensor'].empty?
logstash_pipelines.push('redfish-pipeline') unless sensors['device-sensor'].empty?
logstash_pipelines.push('bulkstats-pipeline') unless sensors['device-sensor'].empty?
end
Expand Down

0 comments on commit e70f657

Please sign in to comment.