lib/rudy/cli/aws/ec2/volumes.rb in rudy-0.9.7.001 vs lib/rudy/cli/aws/ec2/volumes.rb in rudy-0.9.8.001

- old
+ new

@@ -39,10 +39,13 @@ raise "Volume #{@volume.awsid} is still attached" if @volume.attached? raise "Volume #{@volume.awsid} is not available (#{@volume.state})" unless @volume.available? li "Destroying #{@volume.awsid}" execute_check(:medium) - execute_action("Destroy Failed") { Rudy::AWS::EC2::Volumes.destroy(@volume.awsid) } + execute_action("Destroy Failed") { + Rudy::AWS::EC2::Volumes.destroy(@volume.awsid) + true + } vol = Rudy::AWS::EC2::Volumes.get(@volume.awsid) li @global.verbose > 1 ? vol.inspect : vol.dump(@@global.format) end