guest: Drop the '_' prefix for _add_q35_pcie_controllers

We will use it in domain.py as well.

Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
Lin Ma 2023-01-05 19:29:30 +08:00 committed by Cole Robinson
parent 9813dc3b4f
commit 2d94e92d80

View File

@ -830,7 +830,7 @@ class Guest(XMLBuilder):
dev.set_defaults(self) dev.set_defaults(self)
self.add_virtioscsi_controller() self.add_virtioscsi_controller()
self._add_q35_pcie_controllers() self.add_q35_pcie_controllers()
self._add_spice_devices() self._add_spice_devices()
def add_extra_drivers(self, extra_drivers): def add_extra_drivers(self, extra_drivers):
@ -1136,7 +1136,7 @@ class Guest(XMLBuilder):
return True return True
return False return False
def _add_q35_pcie_controllers(self): def add_q35_pcie_controllers(self):
if any([c for c in self.devices.controller if c.type == "pci"]): if any([c for c in self.devices.controller if c.type == "pci"]):
return return
if not self.defaults_to_pcie(): if not self.defaults_to_pcie():