File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ if [[ "${CK8S_CLUSTER}" =~ ^(sc|both)$ ]]; then
1414 CONFIG_FILE=" ${CK8S_CONFIG_PATH} /sc-config/group_vars/k8s_cluster/ck8s-k8s-cluster-openstack.yaml"
1515
1616 # Check if the key exists and equals false
17- if yq4 ' .openstack_lbaas_enabled' " $CONFIG_FILE " | grep -q ' ^false$' ; then
17+ if yq ' .openstack_lbaas_enabled' " $CONFIG_FILE " | grep -q ' ^false$' ; then
1818 # Delete old key
19- yq4 -i ' del(.openstack_lbaas_enabled)' " $CONFIG_FILE "
19+ yq -i ' del(.openstack_lbaas_enabled)' " $CONFIG_FILE "
2020 # Add new key with same value
21- yq4 -i ' .external_openstack_lbaas_enabled = false' " $CONFIG_FILE "
21+ yq -i ' .external_openstack_lbaas_enabled = false' " $CONFIG_FILE "
2222 fi
2323fi
2424
@@ -28,10 +28,10 @@ if [[ "${CK8S_CLUSTER}" =~ ^(wc|both)$ ]]; then
2828 CONFIG_FILE=" ${CK8S_CONFIG_PATH} /wc-config/group_vars/k8s_cluster/ck8s-k8s-cluster-openstack.yaml"
2929
3030 # Check if the key exists and equals false
31- if yq4 ' .openstack_lbaas_enabled' " $CONFIG_FILE " | grep -q ' ^false$' ; then
31+ if yq ' .openstack_lbaas_enabled' " $CONFIG_FILE " | grep -q ' ^false$' ; then
3232 # Delete old key
33- yq4 -i ' del(.openstack_lbaas_enabled)' " $CONFIG_FILE "
33+ yq -i ' del(.openstack_lbaas_enabled)' " $CONFIG_FILE "
3434 # Add new key with same value
35- yq4 -i ' .external_openstack_lbaas_enabled = false' " $CONFIG_FILE "
35+ yq -i ' .external_openstack_lbaas_enabled = false' " $CONFIG_FILE "
3636 fi
3737fi
You can’t perform that action at this time.
0 commit comments