1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-10-31 19:44:16 +00:00

fix host network interface name error

This commit is contained in:
catborise 2021-03-30 15:43:58 +03:00
parent a5c1d8c308
commit 483e5c9a68

View file

@ -150,7 +150,7 @@ class wvmInterface(wvmConnect):
mac = self.get_mac() mac = self.get_mac()
itype = self.get_type() itype = self.get_type()
state = self.is_active() state = self.is_active()
return {"name": self.iface, "type": itype, "state": state, "mac": mac} return {"name": self.iface.name(), "type": itype, "state": state, "mac": mac}
def stop_iface(self): def stop_iface(self):
self.iface.destroy() self.iface.destroy()