amazon-ec2 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/amazon-ec2.gemspec +1 -1
- data/lib/AWS/EC2/snapshots.rb +4 -4
- data/test/test_EC2_snapshots.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.7
|
data/amazon-ec2.gemspec
CHANGED
data/lib/AWS/EC2/snapshots.rb
CHANGED
@@ -11,10 +11,10 @@ module AWS
|
|
11
11
|
# @option options [optional,String] :restorable_by ('') Account ID of a user that can create volumes from the snapshot.
|
12
12
|
#
|
13
13
|
def describe_snapshots( options = {} )
|
14
|
-
|
15
|
-
params
|
16
|
-
params["RestorableBy"] = options[:restorable_by]
|
17
|
-
params["Owner"] = options[:owner]
|
14
|
+
params = {}
|
15
|
+
params.merge!(pathlist("SnapshotId", options[:snapshot_id] )) unless options[:snapshot_id].nil? || options[:snapshot_id] == []
|
16
|
+
params["RestorableBy"] = options[:restorable_by] unless options[:restorable_by].nil?
|
17
|
+
params["Owner"] = options[:owner] unless options[:owner].nil?
|
18
18
|
return response_generator(:action => "DescribeSnapshots", :params => params)
|
19
19
|
end
|
20
20
|
|
data/test/test_EC2_snapshots.rb
CHANGED
@@ -45,7 +45,7 @@ context "EC2 snaphots " do
|
|
45
45
|
|
46
46
|
|
47
47
|
specify "should be able to be described with describe_snapshots" do
|
48
|
-
@ec2.stubs(:make_request).with('DescribeSnapshots', {'
|
48
|
+
@ec2.stubs(:make_request).with('DescribeSnapshots', {'SnapshotId.1' => 'snap-78a54011'}).
|
49
49
|
returns stub(:body => @describe_snapshots_response_body, :is_a? => true)
|
50
50
|
|
51
51
|
@ec2.describe_snapshots( :snapshot_id => "snap-78a54011" ).should.be.an.instance_of Hash
|