ec2launcher 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.13
2
+
3
+ * Fix use of security groups when launching an instance into the public cloud with a security group that is defined with the same name in both the public cloud and a VPC.
4
+
1
5
  ## 1.0.12
2
6
 
3
7
  * Embed runurl and setup.rb scripts in user-data to avoid having to retrieve them.
data/lib/ec2launcher.rb CHANGED
@@ -164,7 +164,9 @@ module EC2Launcher
164
164
  sg_map = { }
165
165
  AWS.start_memoizing
166
166
  @ec2.security_groups.each do |sg|
167
- unless ec2_subnet.nil?
167
+ if ec2_subnet.nil?
168
+ next unless sg.vpc_id.nil?
169
+ else
168
170
  next unless ec2_subnet.vpc_id == sg.vpc_id
169
171
  end
170
172
  sg_map[sg.name] = sg
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.0.12"
5
+ VERSION = "1.0.13"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-25 00:00:00.000000000 Z
12
+ date: 2012-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk