stemcell 0.11.10 → 0.11.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7507325651ec8da0572ef5638823edc4250ba9c7
4
- data.tar.gz: 5141fb0f5d90116e1245a233193d144af1b7bb4a
3
+ metadata.gz: be5d265d86505b9f9510c4a49e32edcd3818ad2d
4
+ data.tar.gz: fe8c43abeb21b2e0d0aba92c9cb7f96ccfabfda9
5
5
  SHA512:
6
- metadata.gz: 02625b23aeefca813c24cdbba7c7886f15f9294938ff78b5b0fcacd599e2404e751db09c414750e29f1b533e13f0997a4abea5535c4d0e9d6d69f0df3e1541a6
7
- data.tar.gz: 14009ac687b05b8b8eb931d62b2593ebfcf4eefe0c61f6ab00f156580c8a3e830d3e8bb87e4ac6b0fd1a102f74c396ef15ec16c071463be504edb90d20dc059d
6
+ metadata.gz: 9c9636e89c8892261da6372741985d6a0cd4759eadeebe3450bdc8f5093906a776d9cf3ed17cb0e53329a53d9e1493d6f469636d638dc3f4254248b4a8effa94
7
+ data.tar.gz: d8cafabc54c274f5952aa2b8f4406eeabd73b39f45cb6e0b7161ccdb01b5526ac687df43de80dde0926bd63bdb46f2574643d07dcb9b601ee0118d3b7a5c9970
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.11.11
2
+ - Fix set_classic_link issue - vpc_id could be nil or false
3
+
1
4
  # 0.11.10
2
5
  - Configurable number of retries for batch operations
3
6
  - Do not set set_classic_link on vpc instances
@@ -195,7 +195,7 @@ module Stemcell
195
195
  @log.info "sent ec2 api tag requests successfully"
196
196
 
197
197
  # link to classiclink
198
- if @vpc_id.nil?
198
+ unless @vpc_id
199
199
  set_classic_link(instances, opts['classic_link'])
200
200
  @log.info "successfully applied classic link settings (if any)"
201
201
  end
@@ -1,3 +1,3 @@
1
1
  module Stemcell
2
- VERSION = "0.11.10"
2
+ VERSION = "0.11.11"
3
3
  end
@@ -91,6 +91,14 @@ describe Stemcell::Launcher do
91
91
 
92
92
  launcher.send(:launch, launch_options)
93
93
  end
94
+
95
+ it 'calls set_classic_link for non vpc instances' do
96
+ launcher = Stemcell::Launcher.new({'region' => 'region', 'vpc_id' => false})
97
+ expect(launcher).to receive(:set_classic_link)
98
+ expect(launcher).to receive(:set_tags).with(kind_of(Array), kind_of(Hash)).and_return(nil)
99
+ expect(launcher).to receive(:do_launch).and_return(instances)
100
+ launcher.send(:launch, launch_options)
101
+ end
94
102
  end
95
103
 
96
104
  describe '#set_classic_link' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stemcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.10
4
+ version: 0.11.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Rhoads
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-02-28 00:00:00.000000000 Z
14
+ date: 2018-03-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aws-sdk-v1