[virt-tools-list] [virt-manager] [PATCH 1/2] guest: Drop the '_' prefix for _add_q35_pcie_controllers

Lin Ma lma at suse.com
Thu Sep 22 07:56:44 UTC 2022


We will use it in domain.py as well.

Signed-off-by: Lin Ma <lma at suse.com>
---
 virtinst/guest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index e6636022..850039b4 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -809,7 +809,7 @@ class Guest(XMLBuilder):
             dev.set_defaults(self)
 
         self._add_virtioscsi_controller()
-        self._add_q35_pcie_controllers()
+        self.add_q35_pcie_controllers()
         self._add_spice_devices()
 
     def add_extra_drivers(self, extra_drivers):
@@ -1103,7 +1103,7 @@ class Guest(XMLBuilder):
             return True
         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"]):
             return
         if not self.defaults_to_pcie():
-- 
2.37.3



More information about the virt-tools-list mailing list