qubes/vm: fix handling rename

Libvirt VM config is no longer named after VM.
This commit is contained in:
Marek Marczykowski-Górecki 2016-05-21 03:53:08 +02:00 committed by Wojtek Porczyk
parent 5e2b617c6f
commit b37bf55f5e

View File

@ -586,11 +586,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
self.storage.rename(old_name, new_name)
prefix = os.path.join(qubes.config.system_path['qubes_base_dir'], self.dir_path_prefix)
old_config = os.path.join(prefix, old_name, old_name + '.conf')
new_config = os.path.join(prefix, new_name, new_name + '.conf')
os.rename(old_config, new_config)
self._update_libvirt_domain()
if self.autostart: