From: tierno Date: Fri, 8 May 2020 12:02:08 +0000 (+0000) Subject: fix wim persistence issue X-Git-Tag: release-v8.0-start~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F8892%2F4;p=osm%2FRO.git fix wim persistence issue Change-Id: I2dc89c740445e2a487b068949369670f19a4122b Signed-off-by: tierno --- diff --git a/RO/osm_ro/vim_thread.py b/RO/osm_ro/vim_thread.py index 622cccb5..380bd6a6 100644 --- a/RO/osm_ro/vim_thread.py +++ b/RO/osm_ro/vim_thread.py @@ -126,7 +126,7 @@ class vim_thread(threading.Thread): self.error_status = None self.wim_account_id = wim_account_id self.datacenter_tenant_id = datacenter_tenant_id - self.port_mapping = None + self.port_mappings = None if self.wim_account_id: self.target_k = "wim_account_id" self.target_v = self.wim_account_id diff --git a/RO/osm_ro/wim/persistence.py b/RO/osm_ro/wim/persistence.py index f4945bb9..27a87c45 100644 --- a/RO/osm_ro/wim/persistence.py +++ b/RO/osm_ro/wim/persistence.py @@ -870,10 +870,7 @@ def _preprocess_wim_account(wim_account): """ wim_account = preprocess_record(wim_account) - created = wim_account.get('created') - wim_account['created'] = ( - 'true' if created is True or created == 'true' else 'false') - + wim_account['sdn'] = False return wim_account