Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Garett Shulman committed May 1, 2014
1 parent b7259fc commit 93a4abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/drebs/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def prune_backups(strategies)
end
end
to_prune = potential_prunes.uniq.select do |prune|
prune if @db[:strategies].find(:snapshots.like("%#{prune}%")) == 0
prune if @db[:strategies].all.none?{|s| s[:snapshots].include?(prune)}
end
to_prune.each { |snapshot_to_prune| @cloud.ec2.delete_snapshot(snapshot_to_prune.split(":")[0]) }
end
Expand Down

0 comments on commit 93a4abb

Please sign in to comment.