[PATCH 13/16] Virt: pass verbatim hvm_or_pv option to virt_install

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

 



From: Cleber Rosa <crosa@xxxxxxxxxx>

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 <crosa@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux