make tidy

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2025-08-07 16:24:08 +02:00
parent 6bf171ec54
commit 0f7a4d2d84

View File

@ -48,9 +48,7 @@ sub iscsi_session_list {
outfunc => sub { outfunc => sub {
my $line = shift; my $line = shift;
# example: tcp: [1] 192.168.122.252:3260,1 iqn.2003-01.org.linux-iscsi.proxmox-nfs.x8664:sn.00567885ba8f (non-flash) # example: tcp: [1] 192.168.122.252:3260,1 iqn.2003-01.org.linux-iscsi.proxmox-nfs.x8664:sn.00567885ba8f (non-flash)
if ($line =~ if ($line =~ m/^tcp:\s+\[(\S+)\]\s+(\S+:\d+)\,\S+\s+(\S+)\s+\S+?\s*$/) {
m/^tcp:\s+\[(\S+)\]\s+(\S+:\d+)\,\S+\s+(\S+)\s+\S+?\s*$/
) {
my ($session_id, $portal, $target) = ($1, $2, $3); my ($session_id, $portal, $target) = ($1, $2, $3);
# there can be several sessions per target (multipath) # there can be several sessions per target (multipath)
push @{ $res->{$target} }, { session_id => $session_id, portal => $portal }; push @{ $res->{$target} }, { session_id => $session_id, portal => $portal };