[virt-tools-list] [PATCH virt-manager 08/14] cli: refactor noset_cb

Marc Hartmayer mhartmay at linux.ibm.com
Tue Dec 18 13:44:57 UTC 2018


Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
---
 virtinst/cli.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/virtinst/cli.py b/virtinst/cli.py
index ed8cbb6a0caa..868efbe2cecd 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -1312,6 +1312,9 @@ class VirtCLIParser(metaclass=InitClass):
 
         return ret
 
+    def noset_cb(self, inst, val, virtarg):
+        """Do nothing callback"""
+
 
 VIRT_PARSERS = []
 
@@ -1722,9 +1725,6 @@ class ParserBoot(VirtCLIParser):
     def set_emulator_cb(self, inst, val, virtarg):
         self.guest.emulator = val
 
-    def noset_cb(self, inst, val, virtarg):
-        pass
-
     def _parse(self, inst):
         # Build boot order
         boot_order = []
@@ -2073,9 +2073,6 @@ class ParserDisk(VirtCLIParser):
     remove_first = "path"
     stub_none = False
 
-    def noset_cb(self, inst, val, virtarg):
-        ignore = self, inst, val, virtarg
-
     def seclabel_find_inst_cb(self, *args, **kwargs):
         cliarg = "seclabel"  # seclabel[0-9]*
         objpropname = "seclabels"  # disk.seclabels
-- 
2.17.0




More information about the virt-tools-list mailing list