flake8-quotes
commands =
flake8 --config=tox.ini {posargs:cephadm}
- bash -c "test $(grep 'docker.io' cephadm | wc -l) == 12"
+ bash -c "test $(grep 'docker.io' cephadm | wc -l) == 11"
# Downstream distributions may choose to alter this "docker.io" number,
# to make sure no new references to docker.io are creeping in unnoticed.
update_sockets();
dump_asok_metrics();
auto stats_period = g_conf().get_val<int64_t>("exporter_stats_period");
- // time to wait before sending requests again
timer.expires_from_now(std::chrono::seconds(stats_period));
request_loop(timer);
});
}
void DaemonMetricCollector::main() {
+ // time to wait before sending requests again
+ auto stats_period = g_conf().get_val<int64_t>("exporter_stats_period");
boost::asio::io_service io;
- boost::asio::steady_timer timer{io, std::chrono::seconds(0)};
+ boost::asio::steady_timer timer{io, std::chrono::seconds(stats_period)};
request_loop(timer);
io.run();
}
commands =
flake8 --config=tox.ini {posargs} \
{posargs:{[testenv:flake8]modules}}
- bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 14'
+ bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 16'
[testenv:jinjalint]
basepython = python3