Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
ceph_assert(ceph_mutex_is_locked_by_me(lock));
dout(20) << state_str() << dendl;
- std::list<PyModuleRef> modules = py_module_registry.get_modules();
+ auto modules = py_module_registry.get_modules();
// Construct a list of the info about each loaded module
// which we will transmit to the monitor.
* Get references to all modules (whether they have loaded and/or
* errored) or not.
*/
- std::list<PyModuleRef> get_modules() const
+ auto get_modules() const
{
+ std::vector<PyModuleRef> modules_out;
std::lock_guard l(lock);
- std::list<PyModuleRef> modules_out;
for (const auto &i : modules) {
modules_out.push_back(i.second);
}