From 1600750b84d8052ffb996fb3d4b76a0c6d0750b0 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 27 Mar 2017 16:48:32 +0200 Subject: [PATCH] minor error at exception launch when no port mapping found at ovim new_external_port Change-Id: Ica397ec68c2907dc0475f921c78b3cf27dedb304 Signed-off-by: tierno --- ovim.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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", -- 2.17.1