vm_shepherd 1.3.0 → 1.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80b5490aee5b7e2b0432d36155d4e6b201692246
4
- data.tar.gz: c7e60bc1d890dcb7f568c35f5d65306c4e269671
3
+ metadata.gz: a8e58d02206376125f4961911d059351ba3adfd6
4
+ data.tar.gz: 6661ce7be0f490b236967364ae77fa3bd1385959
5
5
  SHA512:
6
- metadata.gz: 7af47b2d7345668ef156e44bd9cabd60f15a561e66529f2ae7467af085725da385cae0126d81eee46ef8deab5d4f268e131b81eaea5d49ea9492a415838a38a2
7
- data.tar.gz: 488c4b9d8393ce2ad2f93e5076820f9a57f8debb3ebeef571a306d1a8f5db4707f57517af700c4e4138bb1276d77b6c614c40ec4f8186f8e2b6c331910bb211c
6
+ metadata.gz: f6321f3612d2c0ae50da30554e65e1c2b1093f7cfdc06081016a1d20d132a08864b8c1be5c424da94099b1c64ccce57e602f922b1479a9d63b660c05c3ae11a6
7
+ data.tar.gz: c11e4203f315e9e7c1f85fbf01a5cb24dca66e9ae842b048403dd0aa38cfe320c4eada570f769577284a235ab543753f83d7fedbddc4bca04fee138d7a81e365
@@ -79,7 +79,7 @@ module VmShepherd
79
79
  def clean_environment
80
80
  [:public_subnet_id, :private_subnet_id].each do |subnet_id|
81
81
  subnet_id = env_config.fetch(:outputs).fetch(subnet_id)
82
- clear_subnet(subnet_id)
82
+ clear_subnet(subnet_id) if subnet_id
83
83
  end
84
84
 
85
85
  if (elb_config = env_config[:elb])
@@ -1,3 +1,3 @@
1
1
  module VmShepherd
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
@@ -350,8 +350,9 @@ module VmShepherd
350
350
  end
351
351
 
352
352
  context 'when a subnet is not provided' do
353
- #the sdk never returns nil when looking up a subnet and its instances
354
- let(:subnet2) { instance_double(AWS::EC2::Subnet, instances: []) }
353
+ before do
354
+ env_config[:outputs][:private_subnet_id] = nil
355
+ end
355
356
 
356
357
  it 'only deletes instance 1' do
357
358
  expect(instance1).to receive(:terminate)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vm_shepherd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ops Manager Team