mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
fix(build): skip empty gateway value in network config (#13442)
When var_gateway is set to an empty string, the resulting gw= token in the comma-separated network string causes pct create to fail with a 'missing key in comma-separated list property' error. Closes #13421
This commit is contained in:
committed by
GitHub
parent
b6907269e8
commit
8275531161
@@ -3530,6 +3530,7 @@ build_container() {
|
|||||||
# Gateway
|
# Gateway
|
||||||
if [[ -n "$GATE" ]]; then
|
if [[ -n "$GATE" ]]; then
|
||||||
case "$GATE" in
|
case "$GATE" in
|
||||||
|
,gw=) ;;
|
||||||
,gw=*) NET_STRING+="$GATE" ;;
|
,gw=*) NET_STRING+="$GATE" ;;
|
||||||
*) NET_STRING+=",gw=$GATE" ;;
|
*) NET_STRING+=",gw=$GATE" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user