vagrant-zones 0.1.62 → 0.1.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -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: 1802fe5a452224d35f6e89dcd8ea17e7ab2838afcbb3b514c9c9e89771b871e7
|
4
|
+
data.tar.gz: a79772b9b030d28b40960a1fcbad5c906df4d60605133f7d983648828c5dbae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '007288d8554df476862fc858b8942f9a41e8d7f5dc02fecf3e4c07111c3f50afaf54485a8cb15d77ac293960d4325a4a5ae50b980a176cd1be5daf1c1a7adf2d'
|
7
|
+
data.tar.gz: 6be60c7b07898171fb210522c3f6fbefef9c9515c8b8af6280ace6d0f5211b4d6fa36416a6a24fb549589400473a6c7dff38e67bc3e5c9c9d37654358ccaa8cd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.63](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.62...v0.1.63) (2023-01-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* fubylint ([bcb4e5b](https://github.com/STARTcloud/vagrant-zones/commit/bcb4e5bf6a1a74e773c0757f19531bd739b83676))
|
9
|
+
* get_ipaddress ([4d59a77](https://github.com/STARTcloud/vagrant-zones/commit/4d59a77c7b837259d2c843ddfff81a0442a62f6e))
|
10
|
+
* get_ipaddress ([267aea5](https://github.com/STARTcloud/vagrant-zones/commit/267aea5f96be8ed443e5dbe8751fe0e3f7a54261))
|
11
|
+
* ruby lint ([4b82529](https://github.com/STARTcloud/vagrant-zones/commit/4b82529df3e2d76f60e7f480c3226a3667081117))
|
12
|
+
|
3
13
|
## [0.1.62](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.61...v0.1.62) (2023-01-06)
|
4
14
|
|
5
15
|
|
data/lib/vagrant-zones/driver.rb
CHANGED
@@ -98,7 +98,7 @@ module VagrantPlugins
|
|
98
98
|
## Run commands over SSH instead of ZLogin
|
99
99
|
def ssh_run_command(uii, command)
|
100
100
|
config = @machine.provider_config
|
101
|
-
ip = get_ip_address(
|
101
|
+
ip = get_ip_address('runsshcommmand')
|
102
102
|
user = user(@machine)
|
103
103
|
key = userprivatekeypath(@machine).to_s
|
104
104
|
port = sshport(@machine).to_s
|
@@ -177,9 +177,8 @@ module VagrantPlugins
|
|
177
177
|
end
|
178
178
|
|
179
179
|
# This filters the VM usage for VNIC Naming Purposes
|
180
|
-
def vtype(
|
180
|
+
def vtype(_uii)
|
181
181
|
config = @machine.provider_config
|
182
|
-
uii.info(I18n.t('vagrant_zones.vtype')) if config.debug
|
183
182
|
case config.vm_type
|
184
183
|
when /template/
|
185
184
|
'1'
|
@@ -260,14 +259,14 @@ module VagrantPlugins
|
|
260
259
|
end
|
261
260
|
|
262
261
|
## If DHCP and Zlogin, get the IP address
|
263
|
-
def get_ip_address(
|
262
|
+
def get_ip_address(_function)
|
264
263
|
config = @machine.provider_config
|
265
264
|
name = @machine.name
|
266
265
|
@machine.config.vm.networks.each do |_adaptertype, opts|
|
267
266
|
responses = []
|
268
267
|
nic_type = nictype(opts)
|
269
268
|
if opts[:dhcp4] && opts[:managed]
|
270
|
-
vnic_name = "vnic#{nic_type}#{vtype
|
269
|
+
vnic_name = "vnic#{nic_type}#{vtype}_#{config.partition_id}_#{opts[:nic_number]}"
|
271
270
|
PTY.spawn("pfexec zlogin -C #{name}") do |zlogin_read, zlogin_write, pid|
|
272
271
|
command = "ip -4 addr show dev #{vnic_name} | head -n -1 | tail -1 | awk '{ print $2 }' | cut -f1 -d\"/\" \n"
|
273
272
|
zlogin_read.expect(/\n/) { zlogin_write.printf(command) }
|