Commit 4775c1c1 authored by Ilya Tyaptin's avatar Ilya Tyaptin

Fix the typo in the gnocchiclient exception

NamedMetricAreadyExists has been renamed to the NamedMetricAlreadyExists
in the last release of Gnocchi client

Change-Id: I7c5eab09399b771ddd1d919ba5d12cdd52084569
parent 95b2615d
......@@ -354,7 +354,7 @@ class GnocchiDispatcher(dispatcher.MeterDispatcherBase):
metric.update(rd.metrics[metric_name])
try:
self._gnocchi.metric.create(metric)
except gnocchi_exc.NamedMetricAreadyExists:
except gnocchi_exc.NamedMetricAlreadyExists:
# NOTE(sileht): metric created in the meantime
pass
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment