projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95d151
)
ovs.db.data: Fix Atom.new()'s handling of Boolean values.
author
Ben Pfaff
<blp@nicira.com>
Thu, 15 Sep 2011 19:57:48 +0000
(12:57 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 23 Sep 2011 16:10:44 +0000
(09:10 -0700)
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
patch
|
blob
|
history
diff --git
a/python/ovs/db/data.py
b/python/ovs/db/data.py
index 7f07334927ed4a835809fb04baa6794c90b8c0f7..f62a562d08bbb03852cf4090c8caa04567c588b3 100644
(file)
--- 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.
Real
Type
+ t = ovs.db.types.
Boolean
Type
elif type(x) in [str, unicode]:
t = ovs.db.types.StringType
elif isinstance(x, uuid):