Fix instantiation of manager.AgentManager on cmd.polling.create_polling_service
The commit 28f0a70da9
broke the selection of polling
namespaces. When creating the agent manager we should define the polling group
that we want to use. Otherwise, Ceilometer will for instance enable the "central"
polling methods in the compute nodes, and vice versa.
Change-Id: I179c95a7bfaf5d9722037618108fc882d85fda5a
Signed-off-by: Rafael Weingärtner <rafael@apache.org>
This commit is contained in:
parent
a11266be22
commit
6ba6726aee
|
@ -84,8 +84,7 @@ def create_polling_service(worker_id, conf=None):
|
|||
if conf is None:
|
||||
conf = _prepare_config()
|
||||
conf.log_opt_values(LOG, log.DEBUG)
|
||||
return manager.AgentManager(worker_id,
|
||||
conf)
|
||||
return manager.AgentManager(worker_id, conf, conf.polling_namespaces)
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue