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