From: Ben Pfaff Date: Thu, 25 Aug 2011 00:10:45 +0000 (-0700) Subject: ovs.db.types: Always initialize ref_type attribute. X-Git-Tag: v1.3.0~242 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=14cd095f2666d68cf0c4900d7cb9fb0841380bae;p=sliver-openvswitch.git ovs.db.types: Always initialize ref_type attribute. The ref_type attribute was initialized on some paths but not others. Found by pychecker. --- diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py index 4e8f8f143..8b2900059 100644 --- 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)