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:
parent
ee4f3e8e19
commit
a0675f146f
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue