bugfix - sequels of moving to format() from old-style %-formatting
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 1 Jun 2015 12:32:16 +0000 (14:32 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 1 Jun 2015 12:32:16 +0000 (14:32 +0200)
there were 2 occurrences of an invocation of find that had a {} in them

src/nepi/resources/linux/node.py

index 1bfbf6f..4cd0816 100644 (file)
@@ -468,8 +468,8 @@ class LinuxNode(ResourceManager):
         """
         self.info("Cleaning up home")
         
-        cmd = "cd {} ; find . -maxdepth 1 -name \.nepi -execdir rm -rf {} + "\
-              .format(self.home_dir, self.exp_dir)
+        cmd = "cd {} ; find . -maxdepth 1 -name \.nepi -execdir rm -rf {{}} + "\
+              .format(self.home_dir)
 
         return self.execute(cmd, with_lock = True)
 
@@ -480,8 +480,8 @@ 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, self.exp_dir)
+        cmd = "cd {} ; find . -maxdepth 1 -name '{}' -execdir rm -rf {{}} + "\
+              .format(self.exp_dir, self.ec.exp_id)
         
         return self.execute(cmd, with_lock = True)