On Mon, Mar 18, 2013 at 5:30 AM, Qingtang Zhou <[email protected]> wrote:
> Signed-off-by: Qingtang Zhou <[email protected]>

Applied, thanks!

> ---
>  virttest/qemu_monitor.py | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/virttest/qemu_monitor.py b/virttest/qemu_monitor.py
> index 4348128..d58aabf 100644
> --- a/virttest/qemu_monitor.py
> +++ b/virttest/qemu_monitor.py
> @@ -19,7 +19,13 @@ class MonitorError(Exception):
>
>
>  class MonitorConnectError(MonitorError):
> -    pass
> +    def __init__(self, monitor_name):
> +        MonitorError.__init__(self)
> +        self.monitor_name = monitor_name
> +
> +
> +    def __str__(self):
> +        return "Could not connect to monitor '%s'" % self.monitor_name
>
>
>  class MonitorSocketError(MonitorError):
> --
> 1.8.1.4
>
> _______________________________________________
> Virt-test-devel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/virt-test-devel



-- 
Lucas

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to