Skip to content

Commit

Permalink
fix: unassisted dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Feb 6, 2023
1 parent 130e4d3 commit 866660c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-zones/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 866660c

Please sign in to comment.