Permalink
Browse files

Merge pull request #78 from snovotny/master

Add description option to create snapshots
  • Loading branch information...
treeder committed May 5, 2011
2 parents 26e7fd2 + 1b8025f commit 227240945ab3ac1b5da2093be3d7cb1521d49dd3
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/ec2/ec2.rb
View
@@ -1269,9 +1269,8 @@ def describe_snapshots(list=[])
# :aws_status => "pending",
# :aws_id => "snap-d56783bc"}
#
- def create_snapshot(volume_id)
- link = generate_request("CreateSnapshot",
- "VolumeId" => volume_id.to_s)
+ def create_snapshot(volume_id, options={})
+ link = generate_request("CreateSnapshot", options.merge({"VolumeId" => volume_id.to_s}))
request_info(link, QEc2CreateSnapshotParser.new(:logger => @logger))
rescue Exception
on_exception

0 comments on commit 2272409

Please sign in to comment.