[pve-devel] [PATCH v2 storage 01/10] iscsi direct plugin: fix return value for path() method in non-array context
Fiona Ebner
f.ebner at proxmox.com
Tue Dec 17 16:48:05 CET 2024
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
New in v2.
src/PVE/Storage/ISCSIDirectPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Storage/ISCSIDirectPlugin.pm b/src/PVE/Storage/ISCSIDirectPlugin.pm
index eb329d4..6f02eee 100644
--- a/src/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/src/PVE/Storage/ISCSIDirectPlugin.pm
@@ -100,7 +100,7 @@ sub path {
my $path = "iscsi://$portal/$target/$lun";
- return ($path, $vmid, $vtype);
+ return wantarray ? ($path, $vmid, $vtype) : $path;
}
sub create_base {
--
2.39.5
More information about the pve-devel
mailing list