From bb3fc38b2dffffd89e52981776d9534899e6b08a Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Nov 2015 17:12:14 +0100 Subject: [PATCH] ISCSIPlugin: improve session parser --- PVE/Storage/ISCSIPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index b6c7224..326de9d 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -44,7 +44,7 @@ sub iscsi_session_list { run_command($cmd, errmsg => 'iscsi session scan failed', outfunc => sub { my $line = shift; - if ($line =~ m/^tcp:\s+\[(\S+)\]\s+\S+\s+(\S+)\s*$/) { + if ($line =~ m/^tcp:\s+\[(\S+)\]\s+\S+\s+(\S+)(\s+\S+)?\s*$/) { my ($session, $target) = ($1, $2); # there can be several sessions per target (multipath) push @{$res->{$target}}, $session;