From e5c2448af46da8ec509a9a7b108867b76c341b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 26 Sep 2013 22:25:51 +0200 Subject: [PATCH] copy & paste error (VM rename fix) --- core/storage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/storage/__init__.py b/core/storage/__init__.py index 8b0935d7..a67a921d 100644 --- a/core/storage/__init__.py +++ b/core/storage/__init__.py @@ -142,8 +142,8 @@ class QubesVmStorage(object): def rename(self, old_name, new_name): old_vmdir = self.vmdir new_vmdir = os.path.join(os.path.dirname(self.vmdir), new_name) - os.rename(self.vmdir, new_dirpath) - self.vmdir = new_dirpath + os.rename(self.vmdir, new_vmdir) + self.vmdir = new_vmdir if self.private_img: self.private_img = self.private_img.replace(old_vmdir, new_vmdir) if self.root_img: