diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-08 09:41:14 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-08 09:41:14 +0530 |
commit | 4e13105048450f33bb909499dde3619a6c212252 (patch) | |
tree | e79fc60eba443f9ea7a99b7c60a11f63d833a5af | |
parent | a4315c853797dcae1c2184b807160748130fa42c (diff) | |
download | chef-4e13105048450f33bb909499dde3619a6c212252.tar.gz |
Fixes build failure
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r-- | lib/chef/data_collector.rb | 1 | ||||
-rw-r--r-- | spec/unit/data_collector/config_validation_spec.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/data_collector.rb b/lib/chef/data_collector.rb index c9f3f53d1f..85bb6a28df 100644 --- a/lib/chef/data_collector.rb +++ b/lib/chef/data_collector.rb @@ -209,6 +209,7 @@ class Chef # @param message [Hash] message to send # def send_to_output_locations(message) + return unless Chef::Config[:data_collector][:output_locations] Chef::DataCollector::ConfigValidation.validate_output_locations! Chef::Config[:data_collector][:output_locations].each do |type, locations| diff --git a/spec/unit/data_collector/config_validation_spec.rb b/spec/unit/data_collector/config_validation_spec.rb index 2165b65768..38f7dac554 100644 --- a/spec/unit/data_collector/config_validation_spec.rb +++ b/spec/unit/data_collector/config_validation_spec.rb @@ -197,4 +197,4 @@ describe Chef::DataCollector::ConfigValidation do expect { Chef::DataCollector::ConfigValidation.validate_output_locations! }.not_to raise_error end end -end
\ No newline at end of file +end |