exceptions: fix typo in class name
Change-Id: I91501be201e1ccf30530bc353d7fcd991230a924 Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b32b59d5d5
commit
60e275ff55
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue