ec2launcher 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/bin/ec2launcher +1 -1
- data/lib/ec2launcher/terminator.rb +2 -2
- data/lib/ec2launcher/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/bin/ec2launcher
CHANGED
@@ -28,7 +28,7 @@ if opt_parser.command == "init"
|
|
28
28
|
puts "Successfully created #{opt_parser.location}"
|
29
29
|
elsif opt_parser.command =~ /^term/
|
30
30
|
terminator = EC2Launcher::Terminator.new(opt_parser.options.directory, opt_parser.options.environ)
|
31
|
-
terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key, opt_parser.snapshot_removal)
|
31
|
+
terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key, opt_parser.options.snapshot_removal)
|
32
32
|
elsif opt_parser.command == "launch"
|
33
33
|
launcher = EC2Launcher::Launcher.new
|
34
34
|
launcher.launch(opt_parser.options)
|
@@ -106,8 +106,8 @@ module EC2Launcher
|
|
106
106
|
@log.info(" Searching for snapshots...")
|
107
107
|
snapshots = []
|
108
108
|
volumes.each do |vol|
|
109
|
-
volume_snaps = ec2.snapshots.filter("volume-id", vol.id)
|
110
|
-
|
109
|
+
volume_snaps = ec2.snapshots.filter("volume-id", vol.volume.id)
|
110
|
+
volume_snaps.each {|volume_snapshot| snaphots << volume_snapshot }
|
111
111
|
end
|
112
112
|
|
113
113
|
@log.info(" Deleting #{snapshots.size} snapshots...")
|
data/lib/ec2launcher/version.rb
CHANGED