1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Refactor to support ruby 1.8.7

This commit is contained in:
Aaron Suggs 2012-02-26 21:03:06 -05:00
parent ee4f3e8e19
commit a0675f146f

View file

@ -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|