mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Add a deprecation grouup for core AWS resources
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
46415dfbff
commit
fc7f3a65b4
2 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,11 @@
|
||||||
"action": "ignore",
|
"action": "ignore",
|
||||||
"prefix": "InSpec Attributes are being renamed to InSpec Inputs to avoid confusion with Chef Attributes.",
|
"prefix": "InSpec Attributes are being renamed to InSpec Inputs to avoid confusion with Chef Attributes.",
|
||||||
"comment": "See #3802"
|
"comment": "See #3802"
|
||||||
|
},
|
||||||
|
"aws_resources_in_resource_pack": {
|
||||||
|
"comment": "See #3822",
|
||||||
|
"action": "ignore",
|
||||||
|
"prefix": "AWS resources shipped with core InSpec are being to moved to a resource pack for faster iteration. Please update your profiles to depend on git@github.com:inspec/inspec-aws.git ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
module AwsResourceMixin
|
module AwsResourceMixin
|
||||||
def initialize(resource_params = {})
|
def initialize(resource_params = {})
|
||||||
|
Inspec.deprecate(:aws_resources_in_resource_pack, "Resource '#{@__resource_name__}'")
|
||||||
validate_params(resource_params).each do |param, value|
|
validate_params(resource_params).each do |param, value|
|
||||||
instance_variable_set(:"@#{param}", value)
|
instance_variable_set(:"@#{param}", value)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue