scstadmin: Do not save duplicate target information in the ALUA sections

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-03-20 14:47:17 +00:00
parent 22c950246a
commit ab0b9743b4

View File

@@ -3599,6 +3599,10 @@ sub targetGroupTargetAttributes {
my $pHandle = new IO::Handle;
my $_path = make_path(SCST_DEV_GROUP_DIR(), $group, SCST_DG_TGROUPS, $tgroup, $tgt);
if (-l $_path) {
return \%attributes;
}
if (!(opendir $pHandle, $_path)) {
$self->{'err_string'} = "targetGroupTargetAttributes(): Unable to read directory '$_path': $!";
return undef;