From 36f995367fb772a8c3193eae66d0bee119df7fcf Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 27 May 2020 10:58:40 +0300 Subject: [PATCH] Fix bind_address reporting --- osd_cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osd_cluster.cpp b/osd_cluster.cpp index 8ef07ed7..0dba02f5 100644 --- a/osd_cluster.cpp +++ b/osd_cluster.cpp @@ -96,7 +96,7 @@ json11::Json osd_t::get_osd_state() json11::Json::object st; st["state"] = "up"; if (bind_address != "0.0.0.0") - st["addresses"] = { bind_address }; + st["addresses"] = json11::Json::array { bind_address }; else st["addresses"] = getifaddr_list(); st["host"] = std::string(hostname.data(), hostname.size());