Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-7886] Exclude non .json ext in deploy metadata
When using Golang CC, the presence of a *.txt file (containing multiple json indexes) does not cause any issues in creating indexes from valid index definition files, but while using Node CC, the peer crashes with an error. Add a check in the ValidateMetadataFile to verify the file extension is ".json". Add a return value to indicate if the file should be included since returning an error would cause the peer to crash. Change-Id: Iceeca2d6683490eda9330becbe95a8a4ecedb5c0 Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
- Loading branch information
Chris Elder
committed
Feb 21, 2018
1 parent
5b4c925
commit 6689e73
Showing
2 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters