AppScale/appscale — pull request #86 by shatterednirvana (2012-11-02 21:36:15+00:00)
Title: Local IP caching

Fix for issue #84 (https://github.com/AppScale/appscale/issues/84). The problem was that, in Euca 3, we occasionally see situations where we call `ifconfig`, expecting to get our private IP address back. While we usually do see the private IP address returned as `eth0`, we sometimes do not get an entry for `eth0` back. This causes the AppController to crash, as it assumes that there will be an IP returned.

This fix caches the local IP the first time we get it back, and doesn't keep asking `ifconfig` for it.