From 866660ce249d2fee6a87c61318012dc8befe48a2 Mon Sep 17 00:00:00 2001 From: Mark Gilbert <50398495+MarkProminic@users.noreply.github.com> Date: Sun, 5 Feb 2023 23:56:23 -0600 Subject: [PATCH] fix: unassisted dhcp --- lib/vagrant-zones/driver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-zones/driver.rb b/lib/vagrant-zones/driver.rb index c09bf2e..39ee77b 100644 --- a/lib/vagrant-zones/driver.rb +++ b/lib/vagrant-zones/driver.rb @@ -98,7 +98,7 @@ def control(uii, control) ## Run commands over SSH instead of ZLogin def ssh_run_command(uii, command) config = @machine.provider_config - ip = get_ip_address(_uii) + ip = get_ip_address(uii) user = user(@machine) key = userprivatekeypath(@machine).to_s port = sshport(@machine).to_s @@ -269,7 +269,7 @@ def get_ip_address(uii) Timeout.timeout(config.setup_wait) do rsp = [] command = "ip -4 addr show dev #{ vnic_name } | grep -Po 'inet \\K[\\d.]+' \r\n" - + loop do zlogin_read.expect(/\r\n/) { |line| rsp.push line } uii.info(rsp[-1]) if config.debug_boot