From 305d6f47f8aff43c00d79ce72399a5af434b6e7b Mon Sep 17 00:00:00 2001 From: luomin Date: Wed, 14 Feb 2018 11:24:14 +0900 Subject: [PATCH] [FAB-8238]wrong orderer/peer type in fabric-ca sam The fabric-samples/fabric-ca/scripts/setup-fabric.sh script needs two small changes so that orderers and peers are registered with the correct type. They are currently defaulting to type 'client'. Change-Id: Ibd813cd68ae1669bc39423826ca1d39ac57d16c1 Signed-off-by: luomin --- fabric-ca/scripts/setup-fabric.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fabric-ca/scripts/setup-fabric.sh b/fabric-ca/scripts/setup-fabric.sh index fc22678dfc..90beeb806e 100755 --- a/fabric-ca/scripts/setup-fabric.sh +++ b/fabric-ca/scripts/setup-fabric.sh @@ -45,7 +45,7 @@ function registerOrdererIdentities { while [[ "$COUNT" -le $NUM_ORDERERS ]]; do initOrdererVars $ORG $COUNT log "Registering $ORDERER_NAME with $CA_NAME" - fabric-ca-client register -d --id.name $ORDERER_NAME --id.secret $ORDERER_PASS + fabric-ca-client register -d --id.name $ORDERER_NAME --id.secret $ORDERER_PASS --id.type orderer COUNT=$((COUNT+1)) done log "Registering admin identity with $CA_NAME" @@ -63,7 +63,7 @@ function registerPeerIdentities { while [[ "$COUNT" -le $NUM_PEERS ]]; do initPeerVars $ORG $COUNT log "Registering $PEER_NAME with $CA_NAME" - fabric-ca-client register -d --id.name $PEER_NAME --id.secret $PEER_PASS + fabric-ca-client register -d --id.name $PEER_NAME --id.secret $PEER_PASS --id.type peer COUNT=$((COUNT+1)) done log "Registering admin identity with $CA_NAME"