Skip to content

Commit 73c935d

Browse files
committed
mon: do not show nvmeof in 'ceph versions' output
NVMeoF gateway version is independent of ceph version so 'ceph version' shows wrong nvmeof version in output (i.e. instead of gateway version, it shows Ceph version). Hence, remove nvmeof in 'ceph versions' output. To check for gateway version, use 'gw info' command. Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 1e49516 commit 73c935d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mon/Monitor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4024,7 +4024,7 @@ void Monitor::handle_command(MonOpRequestRef op)
40244024

40254025
for (auto& p : mgrstatmon()->get_service_map().services) {
40264026
auto &service = p.first;
4027-
if (ServiceMap::is_normal_ceph_entity(service)) {
4027+
if (ServiceMap::is_normal_ceph_entity(service) || service == "nvmeof") {
40284028
continue;
40294029
}
40304030
f->open_object_section(service.c_str());

0 commit comments

Comments
 (0)