From 539c4bf465a62094d1fc0fe9c06b3dc9e15fd893 Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 2 Aug 2020 03:50:52 -0400 Subject: [PATCH] D'OH. --- restart_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restart_net.py b/restart_net.py index a6ced53..5c227a2 100755 --- a/restart_net.py +++ b/restart_net.py @@ -94,7 +94,7 @@ class VMManager(object): for dom in self.conn.listAllDomains(flags = _findflags): domnet = DomainNetwork(dom) domnet.get_nets(netnames) - if dom.ifaces: + if domnet.ifaces: doms[uuid.UUID(bytes = dom.UUID())] = domnet for n in self.networks: n.destroy()