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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user