From: tierno Date: Mon, 27 Mar 2017 14:48:32 +0000 (+0200) Subject: minor error at exception launch when no port mapping found at ovim new_external_port X-Git-Tag: v2.0.0~37 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fopenvim.git;a=commitdiff_plain;h=refs%2Fchanges%2F77%2F1377%2F2 minor error at exception launch when no port mapping found at ovim new_external_port Change-Id: Ica397ec68c2907dc0475f921c78b3cf27dedb304 Signed-off-by: tierno --- diff --git a/ovim.py b/ovim.py index 5b36b73..15bde75 100644 --- a/ovim.py +++ b/ovim.py @@ -872,8 +872,7 @@ class ovim(): port_mapping_data = self.get_of_port_mappings(columns, db_filter) if not len(port_mapping_data): - raise ovimException("No port mapping founded for region='{}', compute id='{}' and pci='{}'". - format(db_filter['region'], db_filter['compute_node'], db_filter['pci']), + raise ovimException("No port mapping founded for '{}'".format(str(db_filter)), HTTP_Not_Found) elif len(port_mapping_data) > 1: raise ovimException("Wrong port data was given, please check pci, region & compute id data",