Skip to content

Commit e4be000

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 e4be000

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
@@ -10,6 +10,9 @@ print_fcoe_uefi_conf() {
1010
[ -z "$mac" ] && return 1
1111
dev=$(set_ifname fcoe "$mac")
1212
vlan=$(get_fcoe_boot_vlan "$1")
13+
if [ -z "$vlan" ]; then
14+
return 1
15+
fi
1316
if [ "$vlan" -ne "0" ]; then
1417
case "$vlan" in
1518
[0-9]*)

0 commit comments

Comments
 (0)