mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
scstadmin: Suppress a Perl warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4701,7 +4701,8 @@ sub sessions {
|
||||
my $linked = readlink $pPath;
|
||||
my $g = SCST_GROUPS;
|
||||
my $l = SCST_LUNS;
|
||||
if ($linked =~ /\.\.\/\.\.\/$g\/(.*)\/$l/) {
|
||||
if (defined($linked) &&
|
||||
$linked =~ /\.\.\/\.\.\/$g\/(.*)\/$l/) {
|
||||
my $group = $1;
|
||||
$_sessions{$session}->{$attribute} =
|
||||
$self->luns($driver, $target, $group);
|
||||
|
||||
Reference in New Issue
Block a user