Fix the typo in the gnocchiclient exception

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

Change-Id: I7c5eab09399b771ddd1d919ba5d12cdd52084569
This commit is contained in:
Ilya Tyaptin 2016-02-25 15:56:11 +03:00
parent 95b2615d6e
commit 4775c1c101

View File

@ -354,7 +354,7 @@ class GnocchiDispatcher(dispatcher.MeterDispatcherBase):
metric.update(rd.metrics[metric_name]) metric.update(rd.metrics[metric_name])
try: try:
self._gnocchi.metric.create(metric) self._gnocchi.metric.create(metric)
except gnocchi_exc.NamedMetricAreadyExists: except gnocchi_exc.NamedMetricAlreadyExists:
# NOTE(sileht): metric created in the meantime # NOTE(sileht): metric created in the meantime
pass pass
else: else: