Fix indentation in cleanup section after pvesh refactor

The previous commit left broken indentation and an orphaned else block
in the cleanup section. This fixes the structure to properly handle
the cluster nodes vs standalone node cases.

Related to #738
This commit is contained in:
rcourtman 2025-11-29 18:41:59 +00:00
parent ce47e8ca9d
commit 712541d5d8

View file

@ -2730,12 +2730,6 @@ if [[ -z "$HOST" ]]; then
logger -t "$LOG_TAG" -p user.info || \ logger -t "$LOG_TAG" -p user.info || \
log_warn "Failed to clean up SSH keys on localhost" log_warn "Failed to clean up SSH keys on localhost"
fi fi
else
log_warn "pvecm command not available - cleaning up localhost only"
sed -i -e '/# pulse-managed-key$/d' -e '/# pulse-proxy-key$/d' /root/.ssh/authorized_keys 2>&1 | \
logger -t "$LOG_TAG" -p user.info || \
log_warn "Failed to clean up SSH keys on localhost"
fi
else else
log_info "Cleaning up specific host: $HOST" log_info "Cleaning up specific host: $HOST"