Fix mssql list databases
This commit is contained in:
parent
738b33c525
commit
4d76bc8e0e
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue