vagrant-zones 0.1.63 → 0.1.64

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: 722ca0c9fbda727beb0e393ff921a5cafe3832b4fc7568eb8a564211c924867c
4
+ data.tar.gz: 9f6161e8374c34eef8f13423d8534849c4d7c4a501532a7e9384de1f6bdbdccf
5
5
  SHA512:
6
- metadata.gz: '007288d8554df476862fc858b8942f9a41e8d7f5dc02fecf3e4c07111c3f50afaf54485a8cb15d77ac293960d4325a4a5ae50b980a176cd1be5daf1c1a7adf2d'
7
- data.tar.gz: 6be60c7b07898171fb210522c3f6fbefef9c9515c8b8af6280ace6d0f5211b4d6fa36416a6a24fb549589400473a6c7dff38e67bc3e5c9c9d37654358ccaa8cd
6
+ metadata.gz: a3278978e49ac636071914cd2a5d7e231fd702a6e35c1cbdc7ee25d07d2463ba1c9b41dbd61c1e985b23b5eb87d5c5c677158bd0335d4118b9aa016b8615f447
7
+ data.tar.gz: ec604b4e5a76ea6f2ee4b26e4207c9d0698940a54dd89f3b1b6faa30917fe7bf745bab0c362b9d9d644a297d062d18b45d874bedef3641e2e43842edb3930a45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.64](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.63...v0.1.64) (2023-01-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * vtype ([3169e95](https://github.com/STARTcloud/vagrant-zones/commit/3169e95d23141272a6d3e1dbd9acbaddc0ddeac8))
9
+
3
10
  ## [0.1.63](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.62...v0.1.63) (2023-01-06)
4
11
 
5
12
 
@@ -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) }
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.63'
5
+ VERSION = '0.1.64'
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.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert