[virt-tools-list] [virt-manager PATCH] cli: add missing remove_first method for --blkiotune

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Tue Feb 25 06:47:38 UTC 2014


Add missing remove_first method for --blkiotune.
Update related man pages.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 man/virt-install.pod | 2 +-
 virtinst/cli.py      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/virt-install.pod b/man/virt-install.pod
index 3ccfa41..259a443 100644
--- a/man/virt-install.pod
+++ b/man/virt-install.pod
@@ -164,7 +164,7 @@ Use --memtune=? to see a list of all available sub options. Complete details at
 
 Tune blkio policy for the domain process. Example invocations
 
-    --blkiotune weight=100
+    --blkiotune 100
     --blkiotune weight=100,device_path=/dev/sdc,device_weight=200
 
 Use --blkiotune=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsBlockTuning>
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 5bdc1de..826663a 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -2026,6 +2026,7 @@ class ParserPanic(VirtCLIParser):
 class ParserBlkiotune(VirtCLIParser):
     def _init_params(self):
         self.clear_attr = "blkiotune"
+        self.remove_first = "weight"
 
         self.set_param("blkiotune.weight", "weight")
         self.set_param("blkiotune.device_path", "device_path")
-- 
1.8.5.3




More information about the virt-tools-list mailing list