From: garciadeblas Date: Thu, 21 Mar 2019 08:58:25 +0000 (+0100) Subject: Fixed some typos X-Git-Tag: v7.1.0rc1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;ds=sidebyside;p=osm%2Fopenvim.git Fixed some typos Change-Id: I2583c1878e585d05977889fc2ff766d36f59bd04 Signed-off-by: garciadeblas --- diff --git a/osm_openvim/ovim.py b/osm_openvim/ovim.py index 612e4df..0ad5258 100755 --- a/osm_openvim/ovim.py +++ b/osm_openvim/ovim.py @@ -543,7 +543,7 @@ class ovim(): if tenant_id: result, _ = self.db.get_table(FROM='tenants', SELECT=('uuid',), WHERE={'uuid': tenant_id, "enabled": True}) if result <= 0: - raise ovimException("set_network error, no tenant founded", -result) + raise ovimException("set_network error, no tenant found", -result) bridge_net = None # check valid params @@ -984,7 +984,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 '{}'".format(str(db_filter)), + raise ovimException("No port mapping found 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", diff --git a/scripts/service-floodlight b/scripts/service-floodlight index b8aa38e..015189a 100755 --- a/scripts/service-floodlight +++ b/scripts/service-floodlight @@ -143,7 +143,7 @@ done if [[ -z $component_id ]] then #process not started or finished [[ $log_lines -ge 2 ]] && echo -n "ERROR, it has exited." && break - #started because writted serveral lines at log so report error + #started because writted several lines at log so report error fi [[ -n $logfile ]] && grep -q "Listening for switch connections" ${logfile} && sleep 1 && break sleep 1 diff --git a/scripts/service-opendaylight b/scripts/service-opendaylight index a17f319..a79a020 100755 --- a/scripts/service-opendaylight +++ b/scripts/service-opendaylight @@ -144,7 +144,7 @@ done if [[ -z $component_id ]] then #process not started or finished [[ $log_lines -ge 2 ]] && echo -n "ERROR, it has exited." && break - #started because writted serveral lines at log so report error + #started because writted several lines at log so report error fi [[ -n $logfile_console ]] && grep -q "Listening on port" ${logfile_console} && sleep 1 && break sleep 1 diff --git a/scripts/service-openvim b/scripts/service-openvim index cde4d1a..72b0fcf 100755 --- a/scripts/service-openvim +++ b/scripts/service-openvim @@ -203,7 +203,7 @@ do if [[ -z $component_id ]] then #process not started or finished [[ $log_lines -ge 2 ]] && echo -n "ERROR, it has exited." && break - #started because writted serveral lines at log so report error + #started because writted several lines at log so report error fi [[ -n $logfile ]] && [[ ${om_component} == flow ]] && grep -q "Listening for switch connections" ${logfile} && sleep 1 && break [[ -n $logfile ]] && [[ ${om_component} != flow ]] && grep -q "open${om_component}d ready" ${logfile} && break diff --git a/test/lib/test_utils.py b/test/lib/test_utils.py index bf09899..2be832a 100644 --- a/test/lib/test_utils.py +++ b/test/lib/test_utils.py @@ -28,7 +28,7 @@ def delete_tmp_yaml(name): def search_host_in_env_var(): """ Search for OPENVIM_TEST_HOST_X env var declare by pre_create_host fixture with the host id after creation. - :return: All env vars founded + :return: All env vars found """ return search('OPENVIM_TEST_HOST_')