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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Marc Hartmayer <mhartmay@xxxxxxxxxxxxx>
Reviewed-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux