*/
#include <Python.h>
+#include <boost/algorithm/string/replace.hpp>
#include "common/errno.h"
#include "common/signal.h"
std::vector<MonCommand> commands = mgr_commands;
std::vector<MonCommand> py_commands = py_module_registry.get_commands();
commands.insert(commands.end(), py_commands.begin(), py_commands.end());
+ if (monc.monmap.min_mon_release < ceph_release_t::quincy) {
+ dout(10) << " stripping out positional=false quincy-ism" << dendl;
+ for (auto& i : commands) {
+ boost::replace_all(i.cmdstring, ",positional=false", "");
+ }
+ }
m->set_command_descs(commands);
dout(4) << "going active, including " << m->get_command_descs().size()
<< " commands in beacon" << dendl;