projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
215d728
)
ovs.db.types: Always initialize ref_type attribute.
author
Ben Pfaff
<blp@nicira.com>
Thu, 25 Aug 2011 00:10:45 +0000
(17:10 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 23 Sep 2011 16:10:43 +0000
(09:10 -0700)
The ref_type attribute was initialized on some paths but not others.
Found by pychecker.
python/ovs/db/types.py
patch
|
blob
|
history
diff --git
a/python/ovs/db/types.py
b/python/ovs/db/types.py
index 4e8f8f143cb7eea476a1f298704e7e536be761a2..8b29000596f34fb94c1cc40745b10c60efd1e1cd 100644
(file)
--- a/
python/ovs/db/types.py
+++ b/
python/ovs/db/types.py
@@
-113,6
+113,10
@@
class BaseType(object):
self.min_length = min_length
self.max_length = max_length
self.ref_table = ref_table
+ if ref_table:
+ self.ref_type = 'strong'
+ else:
+ self.ref_type = None
def default(self):
return ovs.db.data.Atom.default(self.type)