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 +4 -4
- data/lib/vm_shepherd/aws_manager.rb +1 -1
- data/lib/vm_shepherd/version.rb +1 -1
- data/spec/vm_shepherd/aws_manager_spec.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8e58d02206376125f4961911d059351ba3adfd6
|
|
4
|
+
data.tar.gz: 6661ce7be0f490b236967364ae77fa3bd1385959
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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])
|
data/lib/vm_shepherd/version.rb
CHANGED
|
@@ -350,8 +350,9 @@ module VmShepherd
|
|
|
350
350
|
end
|
|
351
351
|
|
|
352
352
|
context 'when a subnet is not provided' do
|
|
353
|
-
|
|
354
|
-
|
|
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)
|