2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 08:45:23 +00:00

ovs.db.types: Always initialize ref_type attribute.

The ref_type attribute was initialized on some paths but not others.

Found by pychecker.
This commit is contained in:
Ben Pfaff
2011-08-24 17:10:45 -07:00
parent 215d7280e4
commit 14cd095f26

View File

@@ -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)