[ovs-dev] [python idl 08/16] ovs.db.data: Fix Atom.new()'s handling of Boolean values.

Ethan Jackson ethan at nicira.com
Mon Sep 19 17:48:59 PDT 2011


Looks good,

Ethan

On Mon, Sep 19, 2011 at 11:18, Ben Pfaff <blp at nicira.com> wrote:
> Boolean values have Boolean type, not real type.
>
> This does not fix an actual bug because Atom.new() does not have existing
> users.
> ---
>  python/ovs/db/data.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/python/ovs/db/data.py b/python/ovs/db/data.py
> index 7f07334..f62a562 100644
> --- a/python/ovs/db/data.py
> +++ b/python/ovs/db/data.py
> @@ -212,7 +212,7 @@ class Atom(object):
>         elif type(x) == float:
>             t = ovs.db.types.RealType
>         elif x in [False, True]:
> -            t = ovs.db.types.RealType
> +            t = ovs.db.types.BooleanType
>         elif type(x) in [str, unicode]:
>             t = ovs.db.types.StringType
>         elif isinstance(x, uuid):
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list