diff --git a/database/mssql/mode/listdatabases.pm b/database/mssql/mode/listdatabases.pm index 21b5ffa0d..94e223e07 100644 --- a/database/mssql/mode/listdatabases.pm +++ b/database/mssql/mode/listdatabases.pm @@ -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',