Minor fix regarding "related" in WIM 99/7599/2 v6.0.0
authorAnderson Bravalheri <a.bravalheri@bristol.ac.uk>
Mon, 3 Jun 2019 14:14:12 +0000 (15:14 +0100)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 12 Jun 2019 10:37:52 +0000 (11:37 +0100)
Change-Id: I99c60a905009aa12513ab64dde5f64d164cca855
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
osm_ro/wim/engine.py
osm_ro/wim/persistence.py

index eecf10f..3fdd032 100644 (file)
@@ -348,7 +348,7 @@ class WimEngine(object):
             'sce_net_id': sce_net_id,
             'wim_id': wim_id,
             'wim_account_id': account['uuid'],
-            related: related
+            'related': related
         }
 
     def derive_wan_links(self, wim_usage, networks, tenant=None):
index 636676a..74f7dc6 100644 (file)
@@ -642,8 +642,9 @@ class WimPersistence(object):
 
         if num_changes is None:
             raise UnexpectedDatabaseError(
-                'Impossible to update wim_port_mappings %s:\n%s\n',
-                id, _serialize(properties))
+                'Impossible to update wim_port_mappings {}:\n{}\n'.format(
+                    id, _serialize(properties))
+            )
 
         return num_changes