From a906ace96ae500e5e94f85335d1ac6aba25ec27b Mon Sep 17 00:00:00 2001 From: Nick Murray Date: Sat, 18 Mar 2017 23:08:22 +0800 Subject: [PATCH] [FAB-2824] Incorrect configtx.yaml selected When using configtxgen locally, the configtx.yaml from the source folder will always be selected even if Orderer or Peer config paths are specified. For loop in localconfig/congif.go is not exited when a valid config path is found. This is inconsistent with how it is handled in provisional/provisional.go. Change-Id: I3d00b713fedc059e4a10de0e0197d4db3d3826c2 Signed-off-by: Nick Murray --- common/configtx/tool/localconfig/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/configtx/tool/localconfig/config.go b/common/configtx/tool/localconfig/config.go index 7b43ed531a5..dedffddcd83 100644 --- a/common/configtx/tool/localconfig/config.go +++ b/common/configtx/tool/localconfig/config.go @@ -196,6 +196,7 @@ func Load(profile string) *Profile { } cfgPath = path logger.Infof("Found %s there", configFileName) + break } if cfgPath == "" {