Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for snapshots command

  • Loading branch information...
commit 4427d4b82c7d81b344cf360394a0267f209584ef 1 parent a7f000a
@delano delano authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/rudy/cli/aws/ec2/snapshots.rb
View
5 lib/rudy/cli/aws/ec2/snapshots.rb
@@ -7,9 +7,8 @@ class Snapshots < Rudy::CLI::CommandBase
def create_snapshots_valid?
raise Drydock::ArgError.new('volume ID', @alias) unless @option.volume
- @volume = Rudy::AWS::EC2::Volumes.get(@argv.volid)
- raise "Volume #{@volume.awsid} does not exist" unless @volume
- true
+ @volume = Rudy::AWS::EC2::Volumes.get(@option.volume)
+ !@volume.nil?
end
def create_snapshots
snap = execute_action { Rudy::AWS::EC2::Snapshots.create(@volume.awsid) }
Please sign in to comment.
Something went wrong with that request. Please try again.