Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Oct 25, 2016
1 parent 305eb5d commit 0efd654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gns3server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])

Expand Down

0 comments on commit 0efd654

Please sign in to comment.