From: Anderson Bravalheri Date: Mon, 3 Jun 2019 14:14:12 +0000 (+0100) Subject: Minor fix regarding "related" in WIM X-Git-Tag: v6.0.0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ae60cd84c29eada117b99cf6f3642338b07f6fc5;p=osm%2FRO.git Minor fix regarding "related" in WIM Change-Id: I99c60a905009aa12513ab64dde5f64d164cca855 Signed-off-by: Anderson Bravalheri --- 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