Skip to content

Commit a906ace

Browse files
committed
[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 <[email protected]>
1 parent 397f5de commit a906ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/configtx/tool/localconfig/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ func Load(profile string) *Profile {
196196
}
197197
cfgPath = path
198198
logger.Infof("Found %s there", configFileName)
199+
break
199200
}
200201

201202
if cfgPath == "" {

0 commit comments

Comments
 (0)