Skip to content

Commit 8b8df65

Browse files
committed
fix(fcoe-uefi): exit early on empty vlan
Exit early in case get_fcoe_boot_vlan exits with error or just an empty string, instead of producing invalid config entry.
1 parent aa20bbb commit 8b8df65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules.d/95fcoe-uefi/parse-uefifcoe.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ print_fcoe_uefi_conf() {
1212
vlan=$(get_fcoe_boot_vlan "$1")
1313
if [ "$vlan" -ne "0" ]; then
1414
case "$vlan" in
15+
"")
16+
return 1
17+
;;
1518
[0-9]*)
1619
printf "%s\n" "vlan=$dev.$vlan:$dev"
1720
dev="$dev.$vlan"

0 commit comments

Comments
 (0)