Merge pull request #5623 from inspec/nm/apache-conf-merge-fix

Fix merging of included conf and main conf params in apache conf
This commit is contained in:
Clinton Wolfe 2021-08-23 22:39:50 -04:00 committed by GitHub
commit 026788e294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ module Inspec::Resources
end
end
@params.merge!(params)
@params.merge!(params) { |key, current_val, new_val| [*current_val].to_a + [*new_val].to_a }
to_read = to_read.drop(1)
to_read += include_files(params).find_all do |fp|