From af89fa763662174b386e0022b53ffde7d637d728 Mon Sep 17 00:00:00 2001
From: Helga Velroyen <helgav@google.com>
Date: Mon, 21 Jan 2013 16:12:04 +0100
Subject: [PATCH] Fix format string of KVM output

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 53a23c485..bef3ab834 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -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
-- 
GitLab