File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ logdir=${workingDir}/logs
131131log=" $logdir /${DSTAMP} "
132132
133133# Determine deployment mode: env var takes precedence, then config file
134- is_connected=false
134+ is_disconnected=true
135135if [ " ${ENCLAVE_DEPLOYMENT_MODE:- } " = " connected" ]; then
136- is_connected=true
136+ is_disconnected=false
137137elif [ " $( getValue .disconnected 2> /dev/null) " = " false" ]; then
138- is_connected=true
138+ is_disconnected=false
139139fi
140140
141141EXTRA_VARS=" "
142- if [ " $is_connected " = true ]; then
142+ if [ " $is_disconnected " = false ]; then
143143 # Use --extra-vars= with JSON to pass boolean false (not string "false")
144144 # The key=value syntax (-e disconnected=false) passes a string, which
145145 # Jinja2 evaluates as truthy, breaking template selection.
@@ -212,7 +212,7 @@ step_download_content() {
212212
213213step_build_cache () {
214214 echo " Building local cache .. " | tee -a ${log}
215- if [ " $is_connected " = true ]; then
215+ if [ " $is_disconnected " = false ]; then
216216 echo " Connected mode - skipping mirror registry setup" | tee -a ${log}
217217 else
218218 ansible-playbook playbooks/02-mirror.yaml -e@$global_vars -e@$certs_vars $EXTRA_VARS --tags mirror-registry 2>&1 | tee -a ${log}
You can’t perform that action at this time.
0 commit comments