From 14cd095f2666d68cf0c4900d7cb9fb0841380bae Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 24 Aug 2011 17:10:45 -0700 Subject: [PATCH] ovs.db.types: Always initialize ref_type attribute. The ref_type attribute was initialized on some paths but not others. Found by pychecker. --- python/ovs/db/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py index 4e8f8f14..8b290005 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) -- 2.30.2