From 0efd654b613581362ac46d24ecdd4f422a733f78 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 25 Oct 2016 18:22:08 +0200 Subject: [PATCH] WIP --- gns3server/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/run.py b/gns3server/run.py index 0dcd83d9e..65f8d070e 100644 --- a/gns3server/run.py +++ b/gns3server/run.py @@ -213,8 +213,8 @@ def set_vmware_gns3vm_ip(): if not vmtoolsd: return try: - ip = psutil.net_if_addrs()["eth0"].address - except KeyError: + ip = psutil.net_if_addrs()["eth0"][0].address + except (KeyError, IndexError): return subprocess.run(["vmtoolsd", "--cmd", "info-set guestinfo.gns3.eth0 {}".format(ip)])