Fix format string of KVM output
authorHelga Velroyen <helgav@google.com>
Mon, 21 Jan 2013 15:12:04 +0000 (16:12 +0100)
committerHelga Velroyen <helgav@google.com>
Mon, 21 Jan 2013 15:31:46 +0000 (16:31 +0100)
This fixes a missing 's' in the format string and
the wrong quotes. Those bugs were introduced in
commit 6e043e60.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/hypervisor/hv_kvm.py

index 53a23c4..bef3ab8 100644 (file)
@@ -1721,8 +1721,8 @@ class KVMHypervisor(hv_base.BaseHypervisor):
 
     result = utils.RunCmd([kvm_path] + cls._KVMOPTS_CMDS[option])
     if result.failed:
-      raise errors.HypervisorError("Unable to get KVM % output" %
-                                    ' '.join(cls._KVMOPTS_CMDS[option]))
+      raise errors.HypervisorError("Unable to get KVM %s output" %
+                                    " ".join(cls._KVMOPTS_CMDS[option]))
     return result.output
 
   @classmethod