Skip to content

Commit

Permalink
fix: dhcp natnic
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Jan 6, 2023
1 parent 57a4d5f commit e0f584d
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('runsshcommmand')
ip = get_ip_address(uii, 'runsshcommmand')
user = user(@machine)
key = userprivatekeypath(@machine).to_s
port = sshport(@machine).to_s
Expand Down Expand Up @@ -260,7 +260,7 @@ def vname(uii, opts)
end

## If DHCP and Zlogin, get the IP address
def get_ip_address(_function)
def get_ip_address(uii, _function)
config = @machine.provider_config
name = @machine.name
@machine.config.vm.networks.each do |_adaptertype, opts|
Expand Down

0 comments on commit e0f584d

Please sign in to comment.