From f31887127993f38aed6e034519d61ed80bd86c3e Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Thu, 16 Jun 2016 14:18:40 +0200 Subject: [PATCH] qubes.vm.__init__ Remove uses_custom_config bits --- qubes/vm/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index b541c00e..703ba5ce 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -269,9 +269,6 @@ class BaseVM(qubes.PropertyHolder): def create_config_file(self, file_path=None, prepare_dvm=False): '''Create libvirt's XML domain config file - If :py:attr:`qubes.vm.qubesvm.QubesVM.uses_custom_config` is true, this - does nothing. - :param str file_path: Path to file to create \ (default: :py:attr:`qubes.vm.qubesvm.QubesVM.conf_file`) :param bool prepare_dvm: If we are in the process of preparing \ @@ -280,12 +277,6 @@ class BaseVM(qubes.PropertyHolder): if file_path is None: file_path = self.conf_file - # TODO - # if self.uses_custom_config: - # conf_appvm = open(file_path, "r") - # domain_config = conf_appvm.read() - # conf_appvm.close() - # return domain_config domain_config = self.app.env.get_template('libvirt/xen.xml').render( vm=self, prepare_dvm=prepare_dvm)