From c1e7da72b779d5d1546b0f214dc0d5fc6c1fafc2 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Wed, 26 Feb 2014 09:38:20 +0800 Subject: [PATCH] cli: add missing remove_first method for --blkiotune Add missing remove_first method for --blkiotune. Update related man pages. Signed-off-by: Chen Hanxiao --- 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 3ccfa41e..259a4435 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 diff --git a/virtinst/cli.py b/virtinst/cli.py index 5bdc1de5..826663a3 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")