From c9bece6986c95fed9341b18d93e653a228ec5128 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 19 Mar 2024 14:00:28 +0100 Subject: [PATCH] esxi: only add scsihw if it's defined otherwise we get `scsihw: null` from the api, which is not a valid value, so just omit it. Signed-off-by: Dominik Csapak Signed-off-by: Thomas Lamprecht --- src/PVE/Storage/ESXiPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index e448760..b36cea8 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -1073,7 +1073,7 @@ sub get_create_args { $warn->('ovmf-with-lsi-unsupported', key => 'scsihw', value => "$scsihw"); } } - $create_args->{scsihw} = $scsihw; + $create_args->{scsihw} = $scsihw if defined($scsihw); $create_args->{boot} = "order=$boot_order";