vagrant-zones 0.1.63 → 0.1.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/vagrant-zones/driver.rb +4 -5
- 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: 148c39f1dfed7cc5f9e826eda783dd691f06c4db52472c8e7e0c7c913837a055
|
4
|
+
data.tar.gz: 6df6524608701bb1f9bff6c5b0e7918a4cc761c5813e7e05bbec34dab4e5339e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e46512558341aa5bf53373521ca855273a239ea3c2a5ba662370d695617e251b9cf11d327966e2d6c43adc719fdc58ee36d065a0ded7ee60437bf88991d023
|
7
|
+
data.tar.gz: 31af6fccc808f39f78792d8581eff613a071390fe176c9ab28d2d9afb74a72e14bc9f4fc358132fadc2f67e9ed05f1f74250bae4e41e79a0764ff6dae99c7e1d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.65](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.64...v0.1.65) (2023-01-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* command ([747f3fc](https://github.com/STARTcloud/vagrant-zones/commit/747f3fc308468ad6ceb31da3323b2657e5f5d5a7))
|
9
|
+
|
10
|
+
## [0.1.64](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.63...v0.1.64) (2023-01-06)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* vtype ([3169e95](https://github.com/STARTcloud/vagrant-zones/commit/3169e95d23141272a6d3e1dbd9acbaddc0ddeac8))
|
16
|
+
|
3
17
|
## [0.1.63](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.62...v0.1.63) (2023-01-06)
|
4
18
|
|
5
19
|
|
data/lib/vagrant-zones/driver.rb
CHANGED
@@ -177,8 +177,7 @@ module VagrantPlugins
|
|
177
177
|
end
|
178
178
|
|
179
179
|
# This filters the VM usage for VNIC Naming Purposes
|
180
|
-
def vtype(
|
181
|
-
config = @machine.provider_config
|
180
|
+
def vtype(config)
|
182
181
|
case config.vm_type
|
183
182
|
when /template/
|
184
183
|
'1'
|
@@ -253,7 +252,7 @@ module VagrantPlugins
|
|
253
252
|
# This Sanitizes the VNIC Name
|
254
253
|
def vname(uii, opts)
|
255
254
|
config = @machine.provider_config
|
256
|
-
vnic_name = "vnic#{nictype(opts)}#{vtype(
|
255
|
+
vnic_name = "vnic#{nictype(opts)}#{vtype(config)}_#{config.partition_id}_#{opts[:nic_number]}"
|
257
256
|
uii.info(I18n.t('vagrant_zones.vnic_name') + vnic_name) if config.debug
|
258
257
|
vnic_name
|
259
258
|
end
|
@@ -266,7 +265,7 @@ module VagrantPlugins
|
|
266
265
|
responses = []
|
267
266
|
nic_type = nictype(opts)
|
268
267
|
if opts[:dhcp4] && opts[:managed]
|
269
|
-
vnic_name = "vnic#{nic_type}#{vtype}_#{config.partition_id}_#{opts[:nic_number]}"
|
268
|
+
vnic_name = "vnic#{nic_type}#{vtype(config)}_#{config.partition_id}_#{opts[:nic_number]}"
|
270
269
|
PTY.spawn("pfexec zlogin -C #{name}") do |zlogin_read, zlogin_write, pid|
|
271
270
|
command = "ip -4 addr show dev #{vnic_name} | head -n -1 | tail -1 | awk '{ print $2 }' | cut -f1 -d\"/\" \n"
|
272
271
|
zlogin_read.expect(/\n/) { zlogin_write.printf(command) }
|
@@ -280,7 +279,7 @@ module VagrantPlugins
|
|
280
279
|
|
281
280
|
break
|
282
281
|
end
|
283
|
-
errormessage = "==> #{name} ==> Command ==> #{
|
282
|
+
errormessage = "==> #{name} ==> Command ==> #{command} \nFailed with ==> #{responses[-1]}"
|
284
283
|
raise errormessage if responses[-1].to_s.match(/Error Code: \b(?!0\b)\d{1,4}\b/)
|
285
284
|
end
|
286
285
|
end
|