fix volume tsm mode

This commit is contained in:
qgarnier 2017-09-29 16:22:39 +02:00
parent fcb5f1aa62
commit 6585938aaf
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ sub manage_selection {
$self->{volumes} = {}; $self->{volumes} = {};
$self->{global} = { total => 0, online => 0, offline => 0, empty => 0, pending => 0, filling => 0, full => 0 }; $self->{global} = { total => 0, online => 0, offline => 0, empty => 0, pending => 0, filling => 0, full => 0 };
while ($response =~ /^(.*?),(.*?),(.*?),(.*?),(.*?)$/mg) { while ($response =~ /^(.*?),(.*?),(.*?),(.*?)$/mg) {
my ($volume_name, $stgpool, $status, $pct_utilized) = ($1, $2, $3, $4); my ($volume_name, $stgpool, $status, $pct_utilized) = ($1, $2, $3, $4);
if (defined($self->{option_results}->{filter_volume}) && $self->{option_results}->{filter_volume} ne '' && if (defined($self->{option_results}->{filter_volume}) && $self->{option_results}->{filter_volume} ne '' &&