fix wim persistence issue 92/8892/4
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 8 May 2020 12:02:08 +0000 (12:02 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 28 May 2020 11:39:38 +0000 (11:39 +0000)
Change-Id: I2dc89c740445e2a487b068949369670f19a4122b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
RO/osm_ro/vim_thread.py
RO/osm_ro/wim/persistence.py

index 622cccb..380bd6a 100644 (file)
@@ -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
index f4945bb..27a87c4 100644 (file)
@@ -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