From b8d84274771419d76a98c2ee8f46015dc9209674 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 20 Jun 2023 13:33:14 +0200 Subject: [PATCH] node-proxy: variabilize the observer_url 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 (cherry picked from commit ecbbcb432f1b4d08f4e2d011d821a30e102dd89a) --- src/cephadm/node-proxy/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cephadm/node-proxy/server.py b/src/cephadm/node-proxy/server.py index 8d408aa7762ba..5f50ef3a03ac4 100644 --- a/src/cephadm/node-proxy/server.py +++ b/src/cephadm/node-proxy/server.py @@ -17,6 +17,7 @@ DEFAULT_CONFIG = { 'reporter': { 'check_interval': 5, 'push_data_max_retries': 30, + 'endpoint': 'http://127.0.0.1:8150', }, 'system': { 'refresh_interval': 5 @@ -206,7 +207,7 @@ def main() -> None: 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'] -- 2.39.5