Merge "exceptions: fix typo in class name"

This commit is contained in:
Jenkins 2016-02-03 23:38:35 +00:00 committed by Gerrit Code Review
commit dc23fab362
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class Conflict(ClientException):
message = "Conflict"
class NamedMetricAreadyExists(Conflict, MutipleMeaningException):
class NamedMetricAlreadyExists(Conflict, MutipleMeaningException):
message = "Named metric already exists"
match = re.compile("Named metric .* does not exist")
@ -167,7 +167,7 @@ _error_classes = [BadRequest, Unauthorized, Forbidden, NotFound,
_error_classes_enhanced = {
NotFound: [MetricNotFound, ResourceNotFound, ArchivePolicyRuleNotFound,
ArchivePolicyNotFound],
Conflict: [NamedMetricAreadyExists, ResourceAlreadyExists,
Conflict: [NamedMetricAlreadyExists, ResourceAlreadyExists,
ArchivePolicyAlreadyExists,
ArchivePolicyRuleAlreadyExists]
}