From 50744ca68e76051c3a02fe3373cd8a4de44755d5 Mon Sep 17 00:00:00 2001 From: zhangyanxian Date: Thu, 25 Aug 2016 06:13:37 +0000 Subject: [PATCH] Fix some typos in wsgi.py & catalog.py Change-Id: I18f74b726caa208585f193b90824824aa3bbd272 --- murano/api/v1/catalog.py | 2 +- murano/common/wsgi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/murano/api/v1/catalog.py b/murano/api/v1/catalog.py index 1991971a..2e2f9d38 100644 --- a/murano/api/v1/catalog.py +++ b/murano/api/v1/catalog.py @@ -362,7 +362,7 @@ class Controller(object): if key not in valid_query_params: raise exc.HTTPBadRequest( _('Bad value passed to filter. ' - 'Got {key}, exected:{valid}').format( + 'Got {key}, expected:{valid}').format( key=key, valid=', '.join(valid_query_params))) if key == 'sort_keys': available_sort_keys = ['name', 'created', diff --git a/murano/common/wsgi.py b/murano/common/wsgi.py index 52082f64..192a933b 100644 --- a/murano/common/wsgi.py +++ b/murano/common/wsgi.py @@ -921,7 +921,7 @@ class JSONPatchDeserializer(TextDeserializer): jsonschema.validate(property_to_update, validation_schemas.PKG_UPDATE_SCHEMA) except jsonschema.ValidationError as e: - LOG.error(_LE("Schema validation error occured: {error}") + LOG.error(_LE("Schema validation error occurred: {error}") .format(error=e)) raise webob.exc.HTTPBadRequest(explanation=e.message)