Skip to content

Commit a481c43

Browse files
committed
Rename is_connected to is_disconnected in bootstrap.sh
Keep naming consistent with the existing disconnected terminology used throughout the codebase (Ansible vars, templates, playbooks).
1 parent 248ed87 commit a481c43

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bootstrap.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ logdir=${workingDir}/logs
131131
log="$logdir/${DSTAMP}"
132132

133133
# Determine deployment mode: env var takes precedence, then config file
134-
is_connected=false
134+
is_disconnected=true
135135
if [ "${ENCLAVE_DEPLOYMENT_MODE:-}" = "connected" ]; then
136-
is_connected=true
136+
is_disconnected=false
137137
elif [ "$(getValue .disconnected 2>/dev/null)" = "false" ]; then
138-
is_connected=true
138+
is_disconnected=false
139139
fi
140140

141141
EXTRA_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

213213
step_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}

0 commit comments

Comments
 (0)