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: