Skip to content

Commit

Permalink
fix: get_ipaddress
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Jan 6, 2023
1 parent a647650 commit 267aea5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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, 'runsshcommmand')
ip = get_ip_address('runsshcommmand')
user = user(@machine)
key = userprivatekeypath(@machine).to_s
port = sshport(@machine).to_s
Expand Down Expand Up @@ -177,9 +177,8 @@ def boot(uii)
end

# This filters the VM usage for VNIC Naming Purposes
def vtype(uii)
def vtype(_uii)
config = @machine.provider_config
uii.info(I18n.t('vagrant_zones.vtype')) if config.debug
case config.vm_type
when /template/
'1'
Expand Down Expand Up @@ -260,7 +259,7 @@ def vname(uii, opts)
end

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

0 comments on commit 267aea5

Please sign in to comment.