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:
parent
95b2615d6e
commit
4775c1c101
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user