From 415c20fb469a080a063f6b4b67cd42af81067c66 Mon Sep 17 00:00:00 2001 From: Alexandros Filios Date: Wed, 25 Sep 2024 09:52:20 +0200 Subject: [PATCH] Fix NWO when there is no FSC topology Signed-off-by: Alexandros Filios --- integration/nwo/fabric/network/checks.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration/nwo/fabric/network/checks.go b/integration/nwo/fabric/network/checks.go index 89012f272..6506e0418 100644 --- a/integration/nwo/fabric/network/checks.go +++ b/integration/nwo/fabric/network/checks.go @@ -47,7 +47,11 @@ func (n *Network) CheckTopologyOrderers() { // CheckTopologyFSCNodes checks that the FSC nodes' are well configured. // It returns the parameters to be used for cryptogen. func (n *Network) CheckTopologyFSCNodes() (users map[string]int, userSpecs map[string][]topology.UserSpec) { - fscTopology := n.Context.TopologyByName("fsc").(*fsc.Topology) + t := n.Context.TopologyByName("fsc") + if t == nil { + return + } + fscTopology := t.(*fsc.Topology) users = make(map[string]int) userSpecs = make(map[string][]topology.UserSpec)