wip netapp santricity
This commit is contained in:
parent
7810a2be63
commit
095481e15b
|
@ -189,11 +189,11 @@ sub execute_storages_request {
|
||||||
next if (defined($options{filter_name}) && $options{filter_name} ne '' &&
|
next if (defined($options{filter_name}) && $options{filter_name} ne '' &&
|
||||||
$storages->{storages}->{$i}->{name} !~ /$options{filter_name}/);
|
$storages->{storages}->{$i}->{name} !~ /$options{filter_name}/);
|
||||||
|
|
||||||
my $info = $self->request_api(name => 'info', endpoint => '/' . $storages->{storages}->{$i}->{wwn} . '/' . $options{endpoint});
|
my $info = $self->request_api(name => 'info', endpoint => '/' . $storages->{storages}->[$i]->{wwn} . '/' . $options{endpoint});
|
||||||
$storages->{storages}->{$i}->{offline} = 0;
|
$storages->{storages}->[$i]->{offline} = 0;
|
||||||
$storages->{storages}->{$i}->{offline} = 1 if (!defined($info));
|
$storages->{storages}->[$i]->{offline} = 1 if (!defined($info));
|
||||||
|
|
||||||
$storages->{storages}->{$i}->{ $options{endpoint} } = defined($info) ? $info->{info} : undef;
|
$storages->{storages}->[$i]->{ $options{endpoint} } = defined($info) ? $info->{info} : undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $storages;
|
return $storages;
|
||||||
|
|
Loading…
Reference in New Issue