create a new parameter in DEFAULT_CONFIG for the reporter agent.
The default value, (especially the tcp port) still has to be defined though.
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit
ecbbcb432f1b4d08f4e2d011d821a30e102dd89a)
'reporter': {
'check_interval': 5,
'push_data_max_retries': 30,
+ 'endpoint': 'http://127.0.0.1:8150',
},
'system': {
'refresh_interval': 5
password=password,
system_endpoint='/Systems/System.Embedded.1',
config=config)
- reporter_agent = Reporter(system, "http://127.0.0.1:8000")
+ reporter_agent = Reporter(system, config.__dict__['reporter']['endpoint'])
cherrypy.config.update({
'node_proxy': config,
'server.socket_port': config.__dict__['server']['port']