lib/capistrano/asg/tasks/rolling.rake in capistrano-asg-rolling-0.5.0 vs lib/capistrano/asg/tasks/rolling.rake in capistrano-asg-rolling-0.5.1

- old
+ new

@@ -89,10 +89,10 @@ logger.warning("AMI **#{ami.id}** does not exist for Launch Template **#{version.name}** version **#{version.version}**.") next end # Only clean up when AMI was tagged by us. - next if exists && (!ami.tag?('capistrano-asg-rolling:version') || !ami.tag?('capistrano-asg-rolling:gem-version')) + next if exists && !ami.tag?('capistrano-asg-rolling:version') && !ami.tag?('capistrano-asg-rolling:gem-version') logger.verbose "Deleting Launch Template **#{version.name}** version **#{version.version}**..." version.delete next if deleted