QubesTemplateVm: fire post-rename hooks
这个提交包含在:
父节点
4c2aa8885c
当前提交
8ef5f4c665
@ -105,6 +105,8 @@ class QubesTemplateVm(QubesVm):
|
|||||||
self.commit_changes(verbose=verbose)
|
self.commit_changes(verbose=verbose)
|
||||||
|
|
||||||
def post_rename(self, old_name):
|
def post_rename(self, old_name):
|
||||||
|
super(QubesTemplateVm, self).post_rename(old_name)
|
||||||
|
|
||||||
old_dirpath = os.path.join(os.path.dirname(self.dir_path), old_name)
|
old_dirpath = os.path.join(os.path.dirname(self.dir_path), old_name)
|
||||||
self.clean_volatile_img = self.clean_volatile_img.replace(old_dirpath, self.dir_path)
|
self.clean_volatile_img = self.clean_volatile_img.replace(old_dirpath, self.dir_path)
|
||||||
self.rootcow_img = self.rootcow_img.replace(old_dirpath, self.dir_path)
|
self.rootcow_img = self.rootcow_img.replace(old_dirpath, self.dir_path)
|
||||||
|
正在加载...
在新工单中引用
屏蔽一个用户