From a0675f146f808cebff83100dd1e78ec2ec3e68e5 Mon Sep 17 00:00:00 2001 From: Aaron Suggs Date: Sun, 26 Feb 2012 21:03:06 -0500 Subject: [PATCH] Refactor to support ruby 1.8.7 --- lib/fog/aws/requests/rds/describe_db_snapshots.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/requests/rds/describe_db_snapshots.rb b/lib/fog/aws/requests/rds/describe_db_snapshots.rb index 389ab5d3f..e1538fac8 100644 --- a/lib/fog/aws/requests/rds/describe_db_snapshots.rb +++ b/lib/fog/aws/requests/rds/describe_db_snapshots.rb @@ -36,11 +36,11 @@ module Fog response = Excon::Response.new snapshots = self.data[:snapshots].values if opts[:identifier] - snapshots.select!{|snapshot| snapshot['DBInstanceIdentifier'] == opts[:identifier]} + snapshots = snapshots.select{|snapshot| snapshot['DBInstanceIdentifier'] == opts[:identifier]} end if opts[:snapshot_id] - snapshots.select!{|snapshot| snapshot['DBSnapshotIdentifier'] == opts[:snapshot_id]} + snapshots = snapshots.select{|snapshot| snapshot['DBSnapshotIdentifier'] == opts[:snapshot_id]} end snapshots.each do |snapshot|