update response in service disabled case. (#7141)

This commit is contained in:
Nicolo Maio 2023-01-27 14:33:47 +00:00
parent bc172e46d5
commit 645acf68d5

View file

@ -20,6 +20,10 @@ if influxdb.getInfluxdbVersion then
info.points_exported = influxdb:get_exported_points()
info.exports = influxdb:get_exports()
info.health = influxdb:get_health()
info.status = "UP"
else
info.status = "DISABLED"
end
rest_utils.answer(rest_utils.consts.success.ok, info)