From bf1d0f10e219ae475213b947ce8c76c77c40c452 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 8 May 2020 12:02:08 +0000 Subject: [PATCH] fix wim persistence issue Change-Id: I2dc89c740445e2a487b068949369670f19a4122b Signed-off-by: tierno --- RO/osm_ro/vim_thread.py | 2 +- RO/osm_ro/wim/persistence.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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 -- 2.17.1