openshift/openshift-extras — pull request #23 by adelton (2013-05-27 16:21:41+00:00)
Title: The eth0 might not be configured, find the first non-localhost.

On machine where eth1 is connected and configured and eth0 is not, setting cur_ip_addr fails which has the potential to break the whole setup.

This patch attempts to find the first non-localhost IPv4 address, not necessarily from eth0.