Fix error printing
authorJose A. Lopes <jabolopes@google.com>
Fri, 22 Nov 2013 13:44:02 +0000 (14:44 +0100)
committerJose A. Lopes <jabolopes@google.com>
Wed, 27 Nov 2013 14:52:28 +0000 (15:52 +0100)
Fixes issue 616.

Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>

lib/hypervisor/hv_kvm.py

index b3eaf7e..3c1bc8c 100644 (file)
@@ -1746,7 +1746,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
     result = utils.RunCmd([kvm_path] + optlist)
     if result.failed and not can_fail:
       raise errors.HypervisorError("Unable to get KVM %s output" %
-                                    " ".join(cls._KVMOPTS_CMDS[option]))
+                                    " ".join(optlist))
     return result.output
 
   @classmethod