lib/aws_recon/collectors/ecr.rb in aws_recon-0.2.24 vs lib/aws_recon/collectors/ecr.rb in aws_recon-0.2.25
- old
+ new
@@ -17,10 +17,14 @@
struct.arn = repo.repository_arn
struct.policy = @client
.get_repository_policy({ repository_name: repo.repository_name }).policy_text.parse_policy
rescue Aws::ECR::Errors::ServiceError => e
- raise e unless suppressed_errors.include?(e.code)
+ log_error(e.code)
+
+ unless suppressed_errors.include?(e.code) && !@options.quit_on_exception
+ raise e
+ end
ensure
resources.push(struct.to_h)
end
end