From c0b34b285c6f9ca46162daa2185f4866bef1167e Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Tue, 29 Apr 2014 03:26:54 -0400 Subject: [PATCH] fix(coreos-base/oem-vagrant): Fix up comments Fix some comments that were written for a previous iteration of code. --- .../oem-vagrant/files/box/configure_networks.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb index 392fd50ba0..e2a4c65d68 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb @@ -93,9 +93,8 @@ module VagrantPlugins end end - # Find IP addresses to export in /etc/environment. This step - # must be performed here because that file must be written even - # if there are no additional networks configured. + # Find IP addresses to export in /etc/environment. This only works + # for static addresses defined in the user's Vagrantfile. def self.get_environment_ips(machine, default) public_ipv4 = nil private_ipv4 = nil @@ -109,7 +108,7 @@ module VagrantPlugins end end - # Fall back to localhost if no networks are configured. + # Fall back to localhost if no static networks are configured. private_ipv4 ||= default public_ipv4 ||= private_ipv4 return [public_ipv4, private_ipv4]