Explorar o código

qubes/vm: store libvirt config in libvirt.xml, fix rename handling

Marek Marczykowski-Górecki %!s(int64=8) %!d(string=hai) anos
pai
achega
45d6ab3862
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      qubes/vm/qubesvm.py

+ 1 - 5
qubes/vm/qubesvm.py

@@ -390,7 +390,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
 
     @property
     def conf_file(self):
-        return os.path.join(self.dir_path, self.name + '.conf')
+        return os.path.join(self.dir_path, 'libvirt.xml')
 
 
     # XXX I don't know what to do with these; probably should be isinstance(...)
@@ -541,10 +541,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
             os.path.join(qubes.config.system_path['qubes_base_dir'],
                 self.dir_path_prefix, old_name))
 
-        self.storage.rename(
-            os.path.join(self.dir_path, new_name + '.conf'),
-            os.path.join(self.dir_path, old_name + '.conf'))
-
         self._update_libvirt_domain()
 
         if self.autostart: