qubes/vm: fix handling rename
Libvirt VM config is no longer named after VM.
This commit is contained in:
parent
5e2b617c6f
commit
b37bf55f5e
@ -586,11 +586,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
|
|
||||||
self.storage.rename(old_name, new_name)
|
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()
|
self._update_libvirt_domain()
|
||||||
|
|
||||||
if self.autostart:
|
if self.autostart:
|
||||||
|
Loading…
Reference in New Issue
Block a user