Skip to content

Commit

Permalink
Mac Fusion 7.1.2 returns "unknown" for IP
Browse files Browse the repository at this point in the history
...this fix gets past that

Fixes GH-1073
  • Loading branch information
dbishop committed Aug 1, 2015
1 parent 4ed12b2 commit 62891e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/vmfusion/box/helper/ip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def ip_address
# Use alternate method to retrieve the IP address using vmrun readVariable

ip_address = shell_exec("#{vmrun_cmd.shellescape} readVariable \"#{vmx_file_path}\" guestVar ip", { :mute => true}).stdout.strip
return ip_address unless ip_address.empty?
return ip_address unless ip_address.empty? || ip_address == 'unknown'

unless mac_address.nil?
lease = Fission::Lease.find_by_mac_address(mac_address).data
Expand Down

0 comments on commit 62891e7

Please sign in to comment.