linting
This commit is contained in:
@@ -1405,13 +1405,16 @@ post_update_to_api_extended() {
|
||||
failed)
|
||||
pb_status="failed"
|
||||
;;
|
||||
aborted)
|
||||
pb_status="aborted"
|
||||
;;
|
||||
*)
|
||||
pb_status="unknown"
|
||||
;;
|
||||
esac
|
||||
|
||||
# For failed/unknown status, resolve exit code and error description
|
||||
if [[ "$pb_status" == "failed" ]] || [[ "$pb_status" == "unknown" ]]; then
|
||||
# For failed/aborted/unknown status, resolve exit code and error description
|
||||
if [[ "$pb_status" == "failed" ]] || [[ "$pb_status" == "aborted" ]] || [[ "$pb_status" == "unknown" ]]; then
|
||||
if [[ "$raw_exit_code" =~ ^[0-9]+$ ]]; then
|
||||
exit_code="$raw_exit_code"
|
||||
else
|
||||
|
||||
@@ -4780,7 +4780,6 @@ EOF'
|
||||
export VERBOSE="yes"
|
||||
export var_verbose="yes"
|
||||
|
||||
|
||||
# Show rebuild summary
|
||||
echo -e "${YW}Rebuilding with preserved settings:${CL}"
|
||||
echo -e " Container ID: ${old_ctid} → ${CTID}"
|
||||
@@ -4882,7 +4881,6 @@ EOF'
|
||||
export var_verbose="yes"
|
||||
export RECOVERY_ATTEMPT=$((${RECOVERY_ATTEMPT:-0} + 1))
|
||||
|
||||
|
||||
echo -e "${YW}Rebuilding with increased resources (attempt ${RECOVERY_ATTEMPT}/2):${CL}"
|
||||
echo -e " Container ID: ${old_ctid} → ${CTID}"
|
||||
echo -e " RAM: ${old_ram} → ${GN}${RAM_SIZE}${CL} MiB (x2)"
|
||||
@@ -4926,9 +4924,6 @@ EOF'
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
|
||||
|
||||
esac
|
||||
else
|
||||
# Timeout - auto-remove
|
||||
@@ -5355,7 +5350,6 @@ create_lxc_container() {
|
||||
exit 206
|
||||
fi
|
||||
|
||||
|
||||
# Report installation start to API early - captures failures in storage/template/create
|
||||
post_to_api
|
||||
|
||||
|
||||
Reference in New Issue
Block a user