From 8cef10ccce9d75397152b2d37af2ea40699cd645 Mon Sep 17 00:00:00 2001 From: gvlim <91021875+gvlim@users.noreply.github.com> Date: Mon, 22 May 2023 06:18:06 +0800 Subject: [PATCH] docker monitor remote monitoring bugfix (#1499) Signed-off-by: Glenn Lim --- packages/caliper-core/lib/manager/monitors/monitor-docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/caliper-core/lib/manager/monitors/monitor-docker.js b/packages/caliper-core/lib/manager/monitors/monitor-docker.js index 3c436fa20..fca8123e3 100644 --- a/packages/caliper-core/lib/manager/monitors/monitor-docker.js +++ b/packages/caliper-core/lib/manager/monitors/monitor-docker.js @@ -72,7 +72,7 @@ class MonitorDocker extends MonitorInterface { let remote = URL.parse(container, true); if (remote.hostname === null || remote.port === null || remote.pathname === '/') { Logger.warn('unrecognized host, ' + container); - } else if (filterName.remote.hasOwnProperty(remote.hostname)) { + } else if (filterName.hasOwnProperty(remote.hostname)) { filterName[remote.hostname].containers.push(remote.pathname); } else { filterName[remote.hostname] = { port: remote.port, containers: [remote.pathname] };