vagrant-zones 0.1.96 → 0.1.97
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/vagrant-zones/action.rb +12 -3
- data/lib/vagrant-zones/driver.rb +1 -1
- data/lib/vagrant-zones/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bc4c0b91b20ad53d95b7d2544e3b6766db2bb65615b5eb0d0e5196d33b7b48d
|
4
|
+
data.tar.gz: 4c134f5570b0e4fca44105f28c91a2b26291862cd5e6358dcab21e40fffadd77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85d4e203831861888d8359face75ff093ea82702de832b5ade9f10757bbd896bcf60f84b1f8632f766af82415a357a8a82700ef8fa18b17de1fd42f261b3426
|
7
|
+
data.tar.gz: d78d087ce49093fc843a0f1ed4a96d95d9af91451cd8846a76b8e6b02f412b0dabeeed87853ac18f2c6b5e40c7b1e81e57a8aaf5ba26711e4f8be3d3df521bfa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.97](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.96...v0.1.97) (2024-08-17)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* add destroy confirmation ([f04e30a](https://github.com/STARTcloud/vagrant-zones/commit/f04e30a3d522dd34568fe99ce6199ae771570b4b))
|
9
|
+
* it was there all along ([7355e11](https://github.com/STARTcloud/vagrant-zones/commit/7355e11f15d932c92cf6a678dc574414620992de))
|
10
|
+
* linting - add destroy confirmation ([35786fc](https://github.com/STARTcloud/vagrant-zones/commit/35786fcd404096362211a2a07b44e901b46cc295))
|
11
|
+
* linting - add destroy confirmation ([31d0140](https://github.com/STARTcloud/vagrant-zones/commit/31d0140da06c66100e78fdd9618394d32428130b))
|
12
|
+
* linting - add destroy confirmation ([30e0324](https://github.com/STARTcloud/vagrant-zones/commit/30e0324a1b0865574d3adb95f3cffbe6656bdd05))
|
13
|
+
|
3
14
|
## [0.1.96](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.95...v0.1.96) (2024-08-17)
|
4
15
|
|
5
16
|
|
data/lib/vagrant-zones/action.rb
CHANGED
@@ -6,7 +6,7 @@ require 'log4r'
|
|
6
6
|
module VagrantPlugins
|
7
7
|
module ProviderZone
|
8
8
|
# Run actions against the machine
|
9
|
-
module Action
|
9
|
+
module Action # rubocop:disable Metrics/ModuleLength
|
10
10
|
include Vagrant::Action::Builtin
|
11
11
|
@logger = Log4r::Logger.new('vagrant_zones::action')
|
12
12
|
|
@@ -116,8 +116,17 @@ module VagrantPlugins
|
|
116
116
|
# This is the action that is primarily responsible for completely freeing the resources of the underlying virtual machine.
|
117
117
|
def self.action_destroy
|
118
118
|
Vagrant::Action::Builder.new.tap do |b|
|
119
|
-
b.use Call, IsCreated do |
|
120
|
-
|
119
|
+
b.use Call, IsCreated do |env1, b2|
|
120
|
+
unless env1[:result]
|
121
|
+
b2.use NotCreated
|
122
|
+
b2.use Call, DestroyConfirm do |env2, b3|
|
123
|
+
b3.use Destroy if env2[:result]
|
124
|
+
end
|
125
|
+
next
|
126
|
+
end
|
127
|
+
b2.use Call, DestroyConfirm do |env2, b3|
|
128
|
+
b3.use Destroy if env2[:result]
|
129
|
+
end
|
121
130
|
end
|
122
131
|
end
|
123
132
|
end
|
data/lib/vagrant-zones/driver.rb
CHANGED
@@ -315,7 +315,7 @@ module VagrantPlugins
|
|
315
315
|
## Manage Network Interfaces
|
316
316
|
def network(uii, state)
|
317
317
|
config = @machine.provider_config
|
318
|
-
uii.info(I18n.t('vagrant_zones.creating_networking_interfaces')) if state == 'create'
|
318
|
+
uii.info(I18n.t('vagrant_zones.creating_networking_interfaces')) if state == 'create' && !config.on_demand_vnics
|
319
319
|
@machine.config.vm.networks.each do |adaptertype, opts|
|
320
320
|
case adaptertype.to_s
|
321
321
|
when 'public_network'
|