[pve-devel] [RFC pve-storage 29/36] plugin: iscsi: make helper subroutine `iscsi_session` private
Max Carrara
m.carrara at proxmox.com
Wed Jul 17 11:40:27 CEST 2024
Because this subroutine is not really a valuable helper for the common
ISCSI module, keep it inside the plugin and make it private instead.
Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
src/PVE/Storage/ISCSIPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Storage/ISCSIPlugin.pm b/src/PVE/Storage/ISCSIPlugin.pm
index 8a56cfe..2e55f23 100644
--- a/src/PVE/Storage/ISCSIPlugin.pm
+++ b/src/PVE/Storage/ISCSIPlugin.pm
@@ -167,7 +167,7 @@ sub list_images {
return $res;
}
-sub iscsi_session {
+my sub iscsi_session {
my ($cache, $target) = @_;
$cache->{iscsi_sessions} = iscsi_session_list() if !$cache->{iscsi_sessions};
return $cache->{iscsi_sessions}->{$target};
--
2.39.2
More information about the pve-devel
mailing list