From c4bc62be01922ad2c39c8326df9ed1619a12513c Mon Sep 17 00:00:00 2001 From: Mario Zancanaro Date: Tue, 12 May 2015 15:31:42 +0200 Subject: [PATCH] Bug fixing in cleanExperiment and cleanHome for linux nodes. The last place-holder had no variable. --- src/nepi/resources/linux/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nepi/resources/linux/node.py b/src/nepi/resources/linux/node.py index 0abbf8fe..1bfbf6f4 100644 --- a/src/nepi/resources/linux/node.py +++ b/src/nepi/resources/linux/node.py @@ -469,7 +469,7 @@ class LinuxNode(ResourceManager): self.info("Cleaning up home") cmd = "cd {} ; find . -maxdepth 1 -name \.nepi -execdir rm -rf {} + "\ - .format(self.home_dir) + .format(self.home_dir, self.exp_dir) return self.execute(cmd, with_lock = True) @@ -481,7 +481,7 @@ class LinuxNode(ResourceManager): self.info("Cleaning up experiment files") cmd = "cd {} ; find . -maxdepth 1 -name '{}' -execdir rm -rf {} + "\ - .format(self.exp_dir, self.ec.exp_id) + .format(self.exp_dir, self.ec.exp_id, self.exp_dir) return self.execute(cmd, with_lock = True) -- 2.43.0