mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Merge pull request #1727 from elliott-davis/fix_postgres_resource
Update postgresql conf resource to accept include_dir as a string as well as an array
This commit is contained in:
commit
6ebb62dc10
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ module Inspec::Resources
|
|||
def include_files(params)
|
||||
include_files = params['include'] || []
|
||||
include_files += params['include_if_exists'] || []
|
||||
dirs = params['include_dir'] || []
|
||||
dirs = Array(params['include_dir']) || []
|
||||
dirs.each do |dir|
|
||||
dir = File.join(@conf_dir, dir) if dir[0] != '/'
|
||||
include_files += find_files(dir, depth: 1, type: 'file')
|
||||
|
|
Loading…
Reference in a new issue