From 9798fcae7b05028177f442c90d432c2e298a4c48 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 10 Feb 2009 10:53:08 +0000 Subject: [PATCH] KVM: Fix _CallMonitorCommand error message 1) Only instance_name is available 2) There was a missing string parameter Reviewed-by: iustinp --- lib/hypervisor/hv_kvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 964fe9c03..23ad5ce0b 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -458,7 +458,8 @@ class KVMHypervisor(hv_base.BaseHypervisor): if result.failed: msg = ("Failed to send command '%s' to instance %s." " output: %s, error: %s, fail_reason: %s" % - (instance.name, result.stdout, result.stderr, result.fail_reason)) + (command, instance_name, + result.stdout, result.stderr, result.fail_reason)) raise errors.HypervisorError(msg) return result -- GitLab