We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908926f commit 050ab63Copy full SHA for 050ab63
.github/workflows/chef-test.yml
@@ -5,6 +5,7 @@ on:
5
push:
6
branches:
7
- main
8
+ - chef-win-config-fix
9
paths:
10
- '.github/workflows/chef-test.yml'
11
- 'deployments/chef/**'
deployments/chef/recipes/default.rb
@@ -24,7 +24,7 @@
24
25
remote_file node['splunk_otel_collector']['collector_config_dest'] do
26
source "#{node['splunk_otel_collector']['collector_config_source']}"
27
- only_if { node['splunk_otel_collector']['collector_config'] == {} }
+ only_if { ::File.exist?(node['splunk_otel_collector']['collector_config_source']) && node['splunk_otel_collector']['collector_config'] == {} }
28
notifies :restart, 'windows_service[splunk-otel-collector]', :delayed
29
end
30
0 commit comments