From ba270e18e82dc6bf773595d2329c6d19f5fad376 Mon Sep 17 00:00:00 2001 From: "raynato.c.pedrajeta" Date: Fri, 6 Dec 2024 19:01:13 +0800 Subject: [PATCH] bug(dast):ccp, sshconfig missing Primary Changes ---------------- 1. Fix the issue on plugin-ledger-connector-fabric that throws an error when there is no sshConfig available. Fixes #3671 Signed-off-by: raynato.c.pedrajeta --- .../src/main/typescript/plugin-ledger-connector-fabric.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts b/packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts index 89a0fa9e44..123871a1b6 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts @@ -312,7 +312,8 @@ export class PluginLedgerConnectorFabric const sshConfigString = sshConfigBuffer.toString("utf-8"); this.sshConfig = JSON.parse(sshConfigString); } else { - throw new Error("Cannot instantiate Fabric connector without SSH config"); + this.log.debug("No sshConfig available") + this.sshConfig = {} } if (this.sshDebugOn) { this.sshConfig = this.enableSshDebugLogs(this.sshConfig);