From cf5404f67d2659368292548012399206aee8be07 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 15 Sep 2011 12:57:48 -0700 Subject: [PATCH] ovs.db.data: Fix Atom.new()'s handling of Boolean values. 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ovs/db/data.py b/python/ovs/db/data.py index 7f073349..f62a562d 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): -- 2.30.2