lib/capistrano/asg/rolling/ami.rb in capistrano-asg-rolling-0.2.1 vs lib/capistrano/asg/rolling/ami.rb in capistrano-asg-rolling-0.3.0

- old
+ new

@@ -58,12 +58,12 @@ image_snapshots.each(&:delete) end def snapshots - @snapshots ||= aws_ec2_image.block_device_mappings.map do |mapping| + @snapshots ||= aws_ec2_image.block_device_mappings.filter_map do |mapping| Snapshot.new(mapping.ebs.snapshot_id) if mapping.ebs - end.compact + end end def tags @tags ||= aws_ec2_image.tags.to_h { |tag| [tag.key, tag.value] } end