]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/influx: Only split string on first occurence of dot (.)
authorWido den Hollander <wido@42on.com>
Thu, 3 May 2018 10:11:58 +0000 (12:11 +0200)
committerWido den Hollander <wido@42on.com>
Thu, 3 May 2018 13:53:46 +0000 (15:53 +0200)
commitbd7d0fc16a90b3fefadc2d6904180a7fd04ef5eb
tree40577ec3e4a21a784de2c43b055a548044c6fa54
parent8b447a75a4a80e5cfc65d3c16d6a61f6f3f3b73d
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>
src/pybind/mgr/influx/module.py