Skip to content

Commit 081dc63

Browse files
fix
[static] Signed-off-by: Martin Florian <martin.florian@digitalasset.com>
1 parent a9510c9 commit 081dc63

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cluster/scripts/utils.source

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ function get_cloudsql_id() {
2727
function get_stack_for_namespace_component() {
2828
local namespace=$1
2929
local component=$2
30-
local internal=$3
3130

3231
local stack=""
3332
if [[ "${namespace}" =~ sv.* ]]; then
34-
if [[ "${component}" == "participant" && "${internal}" != "true" ]]; then
33+
if [[ "${component}" == "participant" ]]; then
3534
stack="sv-canton"
36-
elif [[ "${component}" == "sequencer" && "${internal}" != "true" ]]; then
35+
elif [[ "${component}" == "sequencer" ]]; then
3736
stack="sv-canton"
38-
elif [[ "${component}" == "mediator" && "${internal}" != "true" ]]; then
37+
elif [[ "${component}" == "mediator" ]]; then
3938
stack="sv-canton"
4039
else
4140
stack="canton-network"
@@ -51,11 +50,9 @@ create_component_instance() {
5150
local component="$1"
5251
local migration_id="$2"
5352
local namespace="$3"
54-
local internal="$4"
5553

5654
if [[ ("$component" == "sequencer" || "$component" == "mediator" || "$component" == "participant")
57-
&& ("$namespace" != "splitwell" && "$namespace" != "validator1" && "$namespace" != "sv")
58-
&& ("$internal" != "true") ]]; then
55+
&& ("$namespace" != "splitwell" && "$namespace" != "validator1" && "$namespace" != "sv"); then
5956
component_instance="${component}-${migration_id}"
6057
else
6158
component_instance="${component}"

0 commit comments

Comments
 (0)