mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
[FAB-16036] Fix a error of get query in testAPI.sh
This CR add a space in parameter expansion to get a transation id. testAPI.sh tries to get a transaction id using parameter expansion from MESSAGE variable and accesses a URL incluse the transaction id. However the transaction id includes a space at the beginning and the access will be failed. By ridding of the space, the access will successes. Signed-off-by: Nao Nishijima <nao.nishijima.xt@hitachi.com> Reported-by: YAMAUCHI,KAITO <kaito.yamauchi.kk@hitachi-solutions.com> Change-Id: I0c52418044deb3b7d8c30cb64a5908e32462bd09
This commit is contained in:
parent
9e0eed19a4
commit
1826dbfda7
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ VALUES=$(curl -s -X POST \
|
|||
echo $VALUES
|
||||
# Assign previous invoke transaction id to TRX_ID
|
||||
MESSAGE=$(echo $VALUES | jq -r ".message")
|
||||
TRX_ID=${MESSAGE#*ID:}
|
||||
TRX_ID=${MESSAGE#*ID: }
|
||||
echo
|
||||
|
||||
echo "GET query chaincode on peer1 of Org1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue