mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
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:
parent
9813dc3b4f
commit
2d94e92d80
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user