From: Ondrej Lichtner <olichtne(a)redhat.com>
The internal variable ctl_clean_exit in the SlaveMethods class was
incorrectly used a few types, python didn't pick this up because of it's
dynamic nature... This however caused that the cleanup didn't work
properly. This commit fixes that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/NetTestSlave.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index f8dad2b..0cd6185 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -61,12 +61,12 @@ class SlaveMethods:
self._resource_table = {}
- self.ctl_clean_exit = True
+ self._ctl_clean_exit = True
def hello(self, recipe_path):
- if not self.ctl_clean_exit:
- self._methods.machine_cleanup()
- self._methods.ctl_clean_exit = True
+ if not self._ctl_clean_exit:
+ self.machine_cleanup()
+ self._ctl_clean_exit = True
logging.info("Recieved a controller connection.")
self.clear_resource_table()
@@ -94,7 +94,7 @@ class SlaveMethods:
self._cache.del_old_entries()
self.reset_file_transfers()
self._remove_capture_files()
- self.ctl_clean_exit = True
+ self._ctl_clean_exit = True
return "bye"
def kill_cmds(self):
--
1.8.5.3