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 115115 if [[ " $CAPO_PASSWORD " = " " || " $CAPO_PASSWORD " = " null" ]]; then
116116 CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64=$( echo " ${CAPO_OPENSTACK_CLOUD_YAML_CONTENT} " | yq e .clouds.${CAPO_CLOUD} - | yq e ' {"clouds": {"' ${CAPO_CLOUD} ' ": . }}' - | b64encode)
117117 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)
119119 fi
120120fi
121121export OPENSTACK_CLOUD_YAML_B64=" ${CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64} "
You can’t perform that action at this time.
0 commit comments