lib/aws_recon/collectors/sqs.rb in aws_recon-0.2.9 vs lib/aws_recon/collectors/sqs.rb in aws_recon-0.2.10
- old
+ new
@@ -16,9 +16,10 @@
# get_queue_attributes
struct = OpenStruct.new(@client.get_queue_attributes({ queue_url: queue, attribute_names: ['All'] }).attributes.to_h)
struct.type = 'queue'
struct.arn = struct.QueueArn
+ struct.Policy = JSON.parse(CGI.unescape(struct.Policy))
resources.push(struct.to_h)
end
end