commit a1a3ed238f26ad6179fed81f47a9d0065fcf9986 Author: Jan Tluka jtluka@redhat.com Date: Wed Jun 6 14:57:43 2012 +0200
Fix system_config bug for non-remote_exec case
The system_config implementation worked only for remote_exec runs. In case of non-remote test execution the system_config key was missing and lead to unhandled exception. The fix is to move the system_config initialization to netconfig initialization code.
NetConfig/NetConfigParse.py | 1 + NetTest/NetTestController.py | 1 - 2 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/NetConfig/NetConfigParse.py b/NetConfig/NetConfigParse.py index f94a73d..dbd7a6d 100644 --- a/NetConfig/NetConfigParse.py +++ b/NetConfig/NetConfigParse.py @@ -42,6 +42,7 @@ class NetConfigParse: info["rootpass"] = rootpass if rpcport: info["rpcport"] = int(rpcport) + info["system_config"] = {}
dom_netdevs = dom_netmachine.getElementsByTagName("netdevice") netdevs = {} diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py index 12a871d..51a401f 100644 --- a/NetTest/NetTestController.py +++ b/NetTest/NetTestController.py @@ -58,7 +58,6 @@ class NetTestController: "nettestslave.py") session.add_kill_handler(self._session_die) info["session"] = session - info["system_config"] = {}
def _cleanup_slaves(self): for machine_id in self._recipe["machines"]:
lnst-developers@lists.fedorahosted.org