]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telegraf: Catch OSError instead of errno
authorWido den Hollander <wido@42on.com>
Tue, 5 Jun 2018 10:10:20 +0000 (12:10 +0200)
committerWido den Hollander <wido@42on.com>
Fri, 15 Jun 2018 14:42:11 +0000 (16:42 +0200)
commite8a9357d941afaf9cc02ad6e8f962c26537bf19f
tree7e5e2666ff02a596386c5f424d915e3c5480e3a8
parent7a05dd1eb1f8022494906b635a9970d24b98d9b1
mgr/telegraf: Catch OSError instead of errno

A OSError will be thrown (and not catched) if the module starts for
the first time and the UNIX socket of the Telegraf Agent does not
exist (yet).

This will render the module useless because it can not accept commands
for configuration at that point.

If we catch an exception, simply log it but do not raise it.

Signed-off-by: Wido den Hollander <wido@42on.com>
src/pybind/mgr/telegraf/module.py