Fix instantiation of manager.AgentManager on cmd.polling.create_polling_service
The commit28f0a70da9
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> (cherry picked from commit6ba6726aee
)
This commit is contained in:
parent
35c73570eb
commit
4ffd6782c0
|
@ -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