Skip to content

Commit

Permalink
Merge pull request #2463 from mgCepeda/hotfix
Browse files Browse the repository at this point in the history
[fabric] Hotfix init required
  • Loading branch information
sownak authored Dec 28, 2023
2 parents 3ebf2ec + 53ddb61 commit 62800ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ spec:
if [ "${INIT_REQUIRED}" = "true" ]
then
init_flag=" --init-required"
APPROVE_CMD=${COMMIT_CMD}${init_flag}
COMMIT_CMD=${COMMIT_CMD}${init_flag}
fi
for item in $ENDORSERS_CORE_PEER_ADDR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
loop: "{{ peer_chaincodes }}"
loop_control:
loop_var: chaincode
when: chaincode.name in item.chaincodes
when: chaincode.name in item.chaincodes and chaincode.init_required == true
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
lang: {{ component_chaincode.lang | default('golang') }}
commitarguments: {{ component_chaincode.arguments | default('') | quote }}
endorsementpolicies: {{ component_chaincode.endorsements | default('') | quote }}
initrequired: {{ component_chaincode.init_required }}
{% if component_chaincode.repository is defined %}
repository:
hostname: "{{ component_chaincode.repository.url.split('/')[0] | lower }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
sequence: {{ component_chaincode.sequence | default('1') }}
commitarguments: {{ component_chaincode.arguments | default('') | quote }}
endorsementpolicies: {{ component_chaincode.endorsements | default('') | quote }}
initrequired: {{ component_chaincode.init_required }}
{% if component_chaincode.repository is defined %}
repository:
hostname: "{{ component_chaincode.repository.url.split('/')[0] | lower }}"
Expand Down

0 comments on commit 62800ef

Please sign in to comment.