summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/compliance/input_collection.rb2
-rw-r--r--lib/chef/compliance/waiver_collection.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/compliance/input_collection.rb b/lib/chef/compliance/input_collection.rb
index a8a9d6328f..034943f8d9 100644
--- a/lib/chef/compliance/input_collection.rb
+++ b/lib/chef/compliance/input_collection.rb
@@ -57,7 +57,7 @@ class Chef
# @return [Array<Input>] inspec inputs which are enabled in a form suitable to pass to inspec
#
def inspec_data
- select(&:enabled?).each_with_object({}) { |input, hash| hash.merge(input.inspec_data) }
+ select(&:enabled?).each_with_object({}) { |input, hash| hash.merge!(input.inspec_data) }
end
# DSL method to enable input files. This matches on the filename of the input file.
diff --git a/lib/chef/compliance/waiver_collection.rb b/lib/chef/compliance/waiver_collection.rb
index 4fe659554b..a3d12b3a97 100644
--- a/lib/chef/compliance/waiver_collection.rb
+++ b/lib/chef/compliance/waiver_collection.rb
@@ -57,7 +57,7 @@ class Chef
# @return [Array<Waiver>] inspec waivers which are enabled in a form suitable to pass to inspec
#
def inspec_data
- select(&:enabled?).each_with_object({}) { |waiver, hash| hash.merge(waiver.inspec_data) }
+ select(&:enabled?).each_with_object({}) { |waiver, hash| hash.merge!(waiver.inspec_data) }
end
# DSL method to enable waiver files. This matches on the filename of the waiver file.