File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 115
115
if [[ " $CAPO_PASSWORD " = " " || " $CAPO_PASSWORD " = " null" ]]; then
116
116
CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64=$( echo " ${CAPO_OPENSTACK_CLOUD_YAML_CONTENT} " | yq e .clouds.${CAPO_CLOUD} - | yq e ' {"clouds": {"' ${CAPO_CLOUD} ' ": . }}' - | b64encode)
117
117
else
118
- CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64=$( echo " ${CAPO_OPENSTACK_CLOUD_YAML_CONTENT} " | yq e .clouds.${CAPO_CLOUD} - | PASSWORD=${CAPO_PASSWORD} yq e ' .auth.password = env (PASSWORD)' - | yq e ' {"clouds": {"' ${CAPO_CLOUD} ' ": . }}' - | b64encode)
118
+ CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64=$( echo " ${CAPO_OPENSTACK_CLOUD_YAML_CONTENT} " | yq e .clouds.${CAPO_CLOUD} - | PASSWORD=${CAPO_PASSWORD} yq e ' .auth.password = strenv (PASSWORD)' - | yq e ' {"clouds": {"' ${CAPO_CLOUD} ' ": . }}' - | b64encode)
119
119
fi
120
120
fi
121
121
export OPENSTACK_CLOUD_YAML_B64=" ${CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64} "
You can’t perform that action at this time.
0 commit comments