diff options
Diffstat (limited to 'nova/netconf.py')
-rw-r--r-- | nova/netconf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/netconf.py b/nova/netconf.py index 78939d586..53130ceab 100644 --- a/nova/netconf.py +++ b/nova/netconf.py @@ -21,6 +21,8 @@ import socket from oslo.config import cfg +from nova import utils + CONF = cfg.CONF @@ -40,7 +42,7 @@ def _get_my_ip(): csock.close() return addr except socket.error: - return "127.0.0.1" + return utils.get_my_ipv4_address() netconf_opts = [ |