Skip to content

Commit

Permalink
Fix issue in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Jan 18, 2024
1 parent 0457c81 commit c77d373
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/mainchannel/mainchannel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,6 @@ func (r *FabricMainChannelReconciler) mapToConfigTX(channel *hlfv1alpha1.FabricM
DecisionsPerLeader: channel.Spec.ChannelConfig.Orderer.SmartBFT.DecisionsPerLeader,
}
} else if channel.Spec.ChannelConfig.Orderer.OrdererType == hlfv1alpha1.OrdererConsensusEtcdraft {
etcdRaft = orderer.EtcdRaft{
Consenters: consenters,
Options: etcdRaftOptions,
}
for _, consenter := range channel.Spec.Consenters {
tlsCert, err := utils.ParseX509Certificate([]byte(consenter.TLSCert))
if err != nil {
Expand All @@ -1019,6 +1015,10 @@ func (r *FabricMainChannelReconciler) mapToConfigTX(channel *hlfv1alpha1.FabricM
}
consenters = append(consenters, channelConsenter)
}
etcdRaft = orderer.EtcdRaft{
Consenters: consenters,
Options: etcdRaftOptions,
}
} else {
return configtx.Channel{}, fmt.Errorf("orderer type %s not supported", ordererType)
}
Expand Down

0 comments on commit c77d373

Please sign in to comment.