Fix mssql list databases

This commit is contained in:
garnier-quentin 2019-04-10 17:46:18 +02:00
parent 738b33c525
commit 4d76bc8e0e
1 changed files with 5 additions and 5 deletions

View File

@ -31,10 +31,10 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"filter-database:s" => { name => 'filter_database' },
});
$options{options}->add_options(arguments => {
"filter-database:s" => { name => 'filter_database' },
});
return $self;
}
@ -76,7 +76,7 @@ sub run {
$self->manage_selection(%options);
foreach my $database (sort keys %{$self->{databases}}) {
$self->{output}->output_add(long_msg => sprintf("[name = %s] [total = %s]",
$self->{databases}->{$database}->{name}, $self->{databases}->{$database}->{total}));
$self->{databases}->{$database}->{display}, $self->{databases}->{$database}->{total}));
}
$self->{output}->output_add(severity => 'OK',