fix(coreos-base/oem-vagrant): Fix up comments

Fix some comments that were written for a previous iteration of code.
This commit is contained in:
Michael Marineau 2014-04-29 03:26:54 -04:00
parent def1901f7e
commit c0b34b285c

View File

@ -93,9 +93,8 @@ module VagrantPlugins
end end
end end
# Find IP addresses to export in /etc/environment. This step # Find IP addresses to export in /etc/environment. This only works
# must be performed here because that file must be written even # for static addresses defined in the user's Vagrantfile.
# if there are no additional networks configured.
def self.get_environment_ips(machine, default) def self.get_environment_ips(machine, default)
public_ipv4 = nil public_ipv4 = nil
private_ipv4 = nil private_ipv4 = nil
@ -109,7 +108,7 @@ module VagrantPlugins
end end
end end
# Fall back to localhost if no networks are configured. # Fall back to localhost if no static networks are configured.
private_ipv4 ||= default private_ipv4 ||= default
public_ipv4 ||= private_ipv4 public_ipv4 ||= private_ipv4
return [public_ipv4, private_ipv4] return [public_ipv4, private_ipv4]