core: handle firewall.xml path during VM rename

This commit is contained in:
Marek Marczykowski-Górecki 2015-08-04 18:12:18 +02:00
parent cc8af79397
commit 2ed9008a83
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -589,6 +589,9 @@ class QubesVm(object):
self.icon_path = self.icon_path.replace(old_dirpath, new_dirpath)
if hasattr(self, 'kernels_dir') and self.kernels_dir is not None:
self.kernels_dir = self.kernels_dir.replace(old_dirpath, new_dirpath)
if self.firewall_conf is not None:
self.firewall_conf = self.firewall_conf.replace(old_dirpath,
new_dirpath)
self._update_libvirt_domain()
self.post_rename(old_name)