enh oracle tablespace mode no result found (#1243)

This commit is contained in:
Colin Gagnaire 2018-11-27 09:39:39 +01:00 committed by GitHub
parent aa35d5a993
commit f9bc24ed96
1 changed files with 11 additions and 5 deletions

View File

@ -394,13 +394,19 @@ sub manage_selection {
$used = $size - $free;
}
$self->{tablespace}->{$name} = { used => $used,
free => $free,
total => $size,
prct_used => $percent_used,
display => lc $name };
$self->{tablespace}->{$name} = {
used => $used,
free => $free,
total => $size,
prct_used => $percent_used,
display => lc($name)
};
}
if (scalar(keys %{$self->{tablespace}}) <= 0) {
$self->{output}->add_option_msg(short_msg => "No tablespaces found.");
$self->{output}->option_exit();
}
}
1;