Skip to content

Commit 050ab63

Browse files
test
1 parent 908926f commit 050ab63

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/chef-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- chef-win-config-fix
89
paths:
910
- '.github/workflows/chef-test.yml'
1011
- 'deployments/chef/**'

deployments/chef/recipes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
remote_file node['splunk_otel_collector']['collector_config_dest'] do
2626
source "#{node['splunk_otel_collector']['collector_config_source']}"
27-
only_if { node['splunk_otel_collector']['collector_config'] == {} }
27+
only_if { ::File.exist?(node['splunk_otel_collector']['collector_config_source']) && node['splunk_otel_collector']['collector_config'] == {} }
2828
notifies :restart, 'windows_service[splunk-otel-collector]', :delayed
2929
end
3030

0 commit comments

Comments
 (0)