QubesTemplateVm: fire post-rename hooks

This commit is contained in:
Wojciech Zygmunt Porczyk 2014-05-07 14:08:11 +02:00
parent 4c2aa8885c
commit 8ef5f4c665

View File

@ -105,6 +105,8 @@ class QubesTemplateVm(QubesVm):
self.commit_changes(verbose=verbose)
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)
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)