Commit 9798fcae authored by Guido Trotter's avatar Guido Trotter
Browse files

KVM: Fix _CallMonitorCommand error message

1) Only instance_name is available
2) There was a missing string parameter

Reviewed-by: iustinp
parent 68289c75
...@@ -458,7 +458,8 @@ class KVMHypervisor(hv_base.BaseHypervisor): ...@@ -458,7 +458,8 @@ class KVMHypervisor(hv_base.BaseHypervisor):
if result.failed: if result.failed:
msg = ("Failed to send command '%s' to instance %s." msg = ("Failed to send command '%s' to instance %s."
" output: %s, error: %s, fail_reason: %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) raise errors.HypervisorError(msg)
return result return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment