diff --git a/lib/resource_support/aws/aws_resource_mixin.rb b/lib/resource_support/aws/aws_resource_mixin.rb index 34a35d348..7c037c4e7 100644 --- a/lib/resource_support/aws/aws_resource_mixin.rb +++ b/lib/resource_support/aws/aws_resource_mixin.rb @@ -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