]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/influx: Only split string on first occurence of dot (.) 21965/head
authorWido den Hollander <wido@42on.com>
Thu, 3 May 2018 10:11:58 +0000 (12:11 +0200)
committerPrashant D <pdhange@redhat.com>
Mon, 14 May 2018 01:21:50 +0000 (21:21 -0400)
commit3f5fc948bb7e4775e471376a22358f3cc91f6f7f
tree9d55ef48c5878045b2762f242bf25f1edb6136d7
parent07b0d0ace717990b36e358e4ecdc17665f1e9045
mgr/influx: Only split string on first occurence of dot (.)

Service names are not always osd.X or mon.X, they might be
rgw.radosgw.rgw1

This would lead to:

  Unhandled exception from module 'influx' while running on mgr.mon01: too many values to unpack

Only split on the first dot as the rest is the service name

Fixes: http://tracker.ceph.com/issues/23996
Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit bd7d0fc16a90b3fefadc2d6904180a7fd04ef5eb)
src/pybind/mgr/influx/module.py