summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-09-08 14:32:08 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-09-08 14:32:08 +0530
commitd7e1913531b1138fd944ac56301e203d82f86c7f (patch)
treee9eaa7c4e766068bbe26e91a24360389d12ff8af
parent53f6d9c1dad7fdf65e74eddf83602dadcb4685c7 (diff)
downloadchef-d7e1913531b1138fd944ac56301e203d82f86c7f.tar.gz
Fixes urls configurations catches files options
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/data_collector/config_validation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/data_collector/config_validation.rb b/lib/chef/data_collector/config_validation.rb
index 07224f565d..06b0c84c28 100644
--- a/lib/chef/data_collector/config_validation.rb
+++ b/lib/chef/data_collector/config_validation.rb
@@ -89,7 +89,7 @@ class Chef
"Please upgrade #{Chef::Dist::SERVER_PRODUCT} to 12.11 or later and remove the token from your config file " \
"to use key based authentication instead")
true
- when Chef::Config[:data_collector][:output_locations]
+ when Chef::Config[:data_collector][:output_locations] && !valid_hash_with_keys?(Chef::Config[:data_collector][:output_locations], :urls)
# we can run fine to a file without a token, even in solo mode.
unless valid_hash_with_keys?(Chef::Config[:data_collector][:output_locations], :files)
raise Chef::Exceptions::ConfigurationError,