~sandy-walsh/nova/admin-only-api

Viewing all changes in revision 394.

  • Committer: Tarmac
  • Author(s): Soren Hansen
  • Date: 2010-11-03 19:44:09 UTC
  • mfrom: (390.1.1 lp668229)
  • Revision ID: hudson@openstack.org-20101103194409-gwxgkydtzsh0vwwb
Change socket type in nova.utils.get_my_ip() to SOCK_DGRAM. This way, we don't actually have to set up a connection.
Also, change the destination host to an IP (chose one of Google's DNS's at random) rather than a hostname, so we avoid doing a DNS lookup.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: