commit eb30299038eb590b7eb5a69b6216b9924875529e
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Fri Apr 25 18:46:35 2014 +0200
NetTestController: Fixed silent ignoring of detaching virtual interfaces
There was a typo, additional quotes, and the condition check was always
false therefore the virtual devices were not detached after config_only
run.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/NetTestController.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/NetTestController.py b/lnst/Controller/NetTestController.py
index 2453042..7324a7c 100644
--- a/lnst/Controller/NetTestController.py
+++ b/lnst/Controller/NetTestController.py
@@ -519,7 +519,7 @@ class NetTestController:
break
rpc_con.close()
- if "libvirt_dom" in "machine":
+ if "libvirt_dom" in machine:
libvirt_dom = machine["libvirt_dom"]
domain_ctl = VirtDomainCtl(libvirt_dom)
logging.info("Detaching dynamically created interfaces.")
Show replies by date