lib/aws_recon/collectors/lambda.rb in aws_recon-0.2.17 vs lib/aws_recon/collectors/lambda.rb in aws_recon-0.2.18

- old
+ new

@@ -10,10 +10,14 @@ response.functions.each do |function| struct = OpenStruct.new(function) struct.type = 'function' struct.arn = function.function_arn + struct.policy = @client.get_policy({ function_name: function.function_name }).policy.parse_policy + rescue Aws::Lambda::Errors::ResourceNotFoundException => e + log_error(e.code) + ensure resources.push(struct.to_h) end end #