diff --git a/src/CraneCtld/CranedMetaContainer.cpp b/src/CraneCtld/CranedMetaContainer.cpp index f2e8a953..c5b78d12 100644 --- a/src/CraneCtld/CranedMetaContainer.cpp +++ b/src/CraneCtld/CranedMetaContainer.cpp @@ -426,8 +426,10 @@ crane::grpc::QueryClusterInfoReply CranedMetaContainer::QueryClusterInfo( }; if (request.filter_craned_control_states().empty() || - request.filter_craned_resource_states().empty()) + request.filter_craned_resource_states().empty()) { + reply.set_ok(true); return reply; + } const int control_state_num = crane::grpc::CranedControlState_ARRAYSIZE; bool control_filters[control_state_num] = {false}; @@ -532,6 +534,7 @@ crane::grpc::QueryClusterInfoReply CranedMetaContainer::QueryClusterInfo( } }); + reply.set_ok(true); return reply; }