diff --git a/watcher/common/exception.py b/watcher/common/exception.py index d6adc085f..ca798fab8 100644 --- a/watcher/common/exception.py +++ b/watcher/common/exception.py @@ -207,7 +207,7 @@ class AuditTemplateAlreadyExists(Conflict): class AuditTemplateReferenced(Invalid): msg_fmt = _("AuditTemplate %(audit_template)s is referenced by one or " - "multiple audit") + "multiple audits") class AuditTypeNotFound(Invalid): @@ -317,7 +317,7 @@ class AuthorizationFailure(WatcherException): class KeystoneFailure(WatcherException): - msg_fmt = _("'Keystone API endpoint is missing''") + msg_fmt = _("Keystone API endpoint is missing") class ClusterEmpty(WatcherException): diff --git a/watcher/common/utils.py b/watcher/common/utils.py index 741947ace..44fef6bbf 100644 --- a/watcher/common/utils.py +++ b/watcher/common/utils.py @@ -165,7 +165,7 @@ def extend_with_strict_schema(validator_class): raise exception.AuditParameterNotAllowed(parameter=para) for error in validate_properties( - validator, properties, instance, schema + validator, properties, instance, schema ): yield error