mirror of
https://github.com/inspec/inspec
synced 2024-11-13 00:17:08 +00:00
Merge pull request #4104 from inspec/mj/aws
Ensure AwsResourceMixin returns a resource name in deprecation message
This commit is contained in:
commit
83bc512f3e
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
module AwsResourceMixin
|
||||
def initialize(resource_params = {})
|
||||
Inspec.deprecate(:aws_resources_in_resource_pack, "Resource '#{@__resource_name__}'")
|
||||
Inspec.deprecate(:aws_resources_in_resource_pack,
|
||||
"Resource '#{@__resource_name__ ||= self.class.to_s}'")
|
||||
validate_params(resource_params).each do |param, value|
|
||||
instance_variable_set(:"@#{param}", value)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue