Explorar el Código

qubes/vm: fix handling rename

Libvirt VM config is no longer named after VM.
Marek Marczykowski-Górecki hace 8 años
padre
commit
b37bf55f5e
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      qubes/vm/qubesvm.py

+ 0 - 5
qubes/vm/qubesvm.py

@@ -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: