Skip to content

Commit

Permalink
small code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Jan 24, 2024
1 parent 8b275af commit a92f7c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions recipes/system-probe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@

# Set the correct agent startup action
cws_enabled = node['datadog']['security_agent']['cws']['enabled']
sysprobe_enabled = if is_windows
node['datadog']['system_probe']['network_enabled'] || cws_enabled
else
node['datadog']['system_probe']['enabled'] || node['datadog']['system_probe']['network_enabled'] || node['datadog']['system_probe']['service_monitoring_enabled'] || cws_enabled
end
sysprobe_enabled = node['datadog']['system_probe']['enabled'] || node['datadog']['system_probe']['network_enabled'] || cws_enabled
unless is_windows
sysprobe_enabled ||= node['datadog']['system_probe']['service_monitoring_enabled']
end
sysprobe_agent_start = sysprobe_enabled && node['datadog']['agent_start'] && node['datadog']['agent_enable'] ? :start : :stop

#
Expand Down

0 comments on commit a92f7c4

Please sign in to comment.