[ovs-dev] [python idl 10/16] ovs.jsonrpc: Include result in Message.__str__() output.
Ethan Jackson
ethan at nicira.com
Tue Sep 20 00:50:39 UTC 2011
Looks good,
Ethan
On Mon, Sep 19, 2011 at 11:18, Ben Pfaff <blp at nicira.com> wrote:
> This was overlooked in the initial implementation. Including the result
> member makes logging output more useful.
> ---
> python/ovs/jsonrpc.py | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py
> index 7aea31b..ecfe5f8 100644
> --- a/python/ovs/jsonrpc.py
> +++ b/python/ovs/jsonrpc.py
> @@ -165,6 +165,8 @@ class Message(object):
> s.append("method=\"%s\"" % self.method)
> if self.params is not None:
> s.append("params=" + ovs.json.to_string(self.params))
> + if self.result is not None:
> + s.append("result=" + ovs.json.to_string(self.result))
> if self.error is not None:
> s.append("error=" + ovs.json.to_string(self.error))
> if self.id is not None:
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
More information about the dev
mailing list