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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1802fe5a452224d35f6e89dcd8ea17e7ab2838afcbb3b514c9c9e89771b871e7
4
- data.tar.gz: a79772b9b030d28b40960a1fcbad5c906df4d60605133f7d983648828c5dbae5
3
+ metadata.gz: 148c39f1dfed7cc5f9e826eda783dd691f06c4db52472c8e7e0c7c913837a055
4
+ data.tar.gz: 6df6524608701bb1f9bff6c5b0e7918a4cc761c5813e7e05bbec34dab4e5339e
5
5
  SHA512:
6
- metadata.gz: '007288d8554df476862fc858b8942f9a41e8d7f5dc02fecf3e4c07111c3f50afaf54485a8cb15d77ac293960d4325a4a5ae50b980a176cd1be5daf1c1a7adf2d'
7
- data.tar.gz: 6be60c7b07898171fb210522c3f6fbefef9c9515c8b8af6280ace6d0f5211b4d6fa36416a6a24fb549589400473a6c7dff38e67bc3e5c9c9d37654358ccaa8cd
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
 
@@ -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(_uii)
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(uii)}_#{config.partition_id}_#{opts[:nic_number]}"
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 ==> #{cmd} \nFailed with ==> #{responses[-1]}"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.63'
5
+ VERSION = '0.1.65'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.63
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert