Otherwise ceph.in doing get_command_descriptions sees the command does not
exist and will print an error.
Fixes: https://tracker.ceph.com/issues/37956
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
FLAG_OBSOLETE = (1 << 1)
FLAG_DEPRECATED = (1 << 2)
FLAG_POLL = (1 << 4)
+FLAG_HIDDEN = (1 << 5)
# priorities from src/common/perf_counters.h
PRIO_CRITICAL = 10
if not cmd['help']:
continue
flags = cmd.get('flags', 0)
- if flags & (FLAG_OBSOLETE | FLAG_DEPRECATED):
+ if flags & (FLAG_OBSOLETE | FLAG_DEPRECATED | FLAG_HIDDEN):
continue
concise = concise_sig(cmd['sig'])
if partial and not concise.startswith(partial):
paxos_service[PAXOS_MGR].get())->get_command_descs();
for (auto& c : leader_mon_commands) {
- if (!c.is_hidden()) {
- commands.push_back(c);
- }
+ commands.push_back(c);
}
auto features = m->get_connection()->get_features();