mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Remove load locks for cloud resources. (#3420)
Signed-off-by: Jared Quick <jquick@chef.io>
This commit is contained in:
parent
b16a24b615
commit
13e244a880
1 changed files with 6 additions and 15 deletions
|
@ -91,22 +91,13 @@ inspec_core_only = !File.exist?(File.join(File.dirname(__FILE__), '..', 'resourc
|
|||
|
||||
# Do not attempt to load cloud resources if we are in inspec-core mode
|
||||
unless inspec_core_only
|
||||
# AWS resources are included via their own file,
|
||||
# but only consider loading them if we have the SDK available, and is v2.
|
||||
# https://github.com/inspec/inspec/issues/2571
|
||||
if Gem.loaded_specs.key?('aws-sdk') && Gem.loaded_specs['aws-sdk'].version < Gem::Version.new('3.0.0')
|
||||
require 'resource_support/aws'
|
||||
end
|
||||
|
||||
# Azure resources
|
||||
if Gem.loaded_specs.key?('azure_mgmt_resources')
|
||||
require 'resources/azure/azure_backend.rb'
|
||||
require 'resources/azure/azure_generic_resource.rb'
|
||||
require 'resources/azure/azure_resource_group.rb'
|
||||
require 'resources/azure/azure_virtual_machine.rb'
|
||||
require 'resources/azure/azure_virtual_machine_data_disk.rb'
|
||||
end
|
||||
end
|
||||
|
||||
require 'resources/aide_conf'
|
||||
require 'resources/apache'
|
||||
|
|
Loading…
Reference in a new issue