commit ec87320c17c12a22e9989c5b10873e5a71828858
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Thu Nov 8 11:37:48 2012 +0100
Fix crash in deconfiguration when no interfaces were configured
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
NetTest/NetTestController.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py
index 13eefb4..c66abb0 100644
--- a/NetTest/NetTestController.py
+++ b/NetTest/NetTestController.py
@@ -309,7 +309,7 @@ class NetTestController:
return
for machine_id in self._recipe["machines"]:
info = self._get_machineinfo(machine_id)
- if "rpc" not in info:
+ if "rpc" not in info or "configured_interfaces" not in
info:
continue
for if_id in reversed(info["configured_interfaces"]):
self._rpc_call(machine_id, 'deconfigure_interface', if_id)
Show replies by date