From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucas Meneghel Rodrigues Subject: [PATCH 13/16] Virt: pass verbatim hvm_or_pv option to virt_install Date: Thu, 3 Nov 2011 19:26:19 -0200 Message-ID: <1320355582-4342-14-git-send-email-lmr@redhat.com> References: <1320355582-4342-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: In-Reply-To: <1320355582-4342-1-git-send-email-lmr@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org From: Cleber Rosa When using options that affect whether we want to run a paravirt (pv) or fully virtualized domain (hvm), do not assume that the options will always start with a double dash ('--'). This is useful/needed when using multiple options such as --hvm and --accelerate. Signed-off-by: Cleber Rosa --- client/virt/libvirt_vm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py index 129c214..0c32551 100644 --- a/client/virt/libvirt_vm.py +++ b/client/virt/libvirt_vm.py @@ -404,7 +404,7 @@ class VM(virt_vm.BaseVM): return " --name '%s'" % name def add_hvm_or_pv(help, hvm_or_pv): - return " --%s" % hvm_or_pv + return " %s" % hvm_or_pv def add_mem(help, mem): return " --ram=%s" % mem -- 1.7.7