[PATCH] system_config: Config restore regression fix
Radek Pazdera
rpazdera at redhat.com
Wed Aug 22 10:39:39 UTC 2012
This commit fixes a regression in config restoration on
command sequence termination.
The command sequence format has changed recently, which occured
in changing of _run_command_sequence() method. This method is used
in the system config restoration to avoid code duplication, because
it does all the necessary error checking.
Signed-off-by: Radek Pazdera <rpazdera at redhat.com>
---
NetTest/NetTestController.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py
index c70e252..b39939e 100644
--- a/NetTest/NetTestController.py
+++ b/NetTest/NetTestController.py
@@ -461,5 +461,6 @@ class NetTestController:
for option, values in system_config.iteritems():
command["options"][option] = [{"value": values["initial_val"]}]
- self._run_command_sequence([command])
+ seq = {"commands": [command], "quit_on_fail": "no"}
+ self._run_command_sequence(seq)
info["system_config"] = {}
--
1.7.7.6
More information about the LNST-developers
mailing list