Skip to content

Commit

Permalink
[FAB-2824] Incorrect configtx.yaml selected
Browse files Browse the repository at this point in the history
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 <nick@passkit.com>
  • Loading branch information
pkpfr committed Mar 27, 2017
1 parent 397f5de commit a906ace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/configtx/tool/localconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func Load(profile string) *Profile {
}
cfgPath = path
logger.Infof("Found %s there", configFileName)
break
}

if cfgPath == "" {
Expand Down

0 comments on commit a906ace

Please sign in to comment.