[openstack-dev] [ceilometer][gnocchi] some code not very understood

Julien Danjou julien at danjou.info
Thu Dec 7 08:36:43 UTC 2017


On Thu, Dec 07 2017, Jaze Lee wrote:

>    I think at line 416, we should remove some measures that already post at 390.
>    Or may be i miss something?
>
>    https://github.com/openstack/ceilometer/blob/master/ceilometer/publisher/gnocchi.py#L416

The code at L416 is only executed if L390 raises an exception.
So if L390 raises an exception, it has not complete. That's why it's
done again here.

-- 
Julien Danjou
# Free Software hacker
# https://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20171207/b58bf515/attachment.sig>


More information about the OpenStack-dev mailing list