From 98d35c26071b06b6f0943a9f61ac68e0ff484292 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 3 Jun 2019 15:14:12 +0100 Subject: [PATCH] Minor fix regarding "related" in WIM Change-Id: I99c60a905009aa12513ab64dde5f64d164cca855 Signed-off-by: Anderson Bravalheri --- osm_ro/wim/engine.py | 2 +- osm_ro/wim/persistence.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/osm_ro/wim/engine.py b/osm_ro/wim/engine.py index eecf10fd..3fdd0324 100644 --- a/osm_ro/wim/engine.py +++ b/osm_ro/wim/engine.py @@ -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): diff --git a/osm_ro/wim/persistence.py b/osm_ro/wim/persistence.py index 636676a4..74f7dc61 100644 --- a/osm_ro/wim/persistence.py +++ b/osm_ro/wim/persistence.py @@ -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 -- 2.25.1