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.carr...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel