From e2c4631b4283d05498c7adc6d2b327b35fc46526 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 4 Jul 2019 17:09:25 +0200 Subject: [PATCH] enhance typo --- apps/tomcat/web/mode/listapplication.pm | 31 +++++++++++++------------ 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/apps/tomcat/web/mode/listapplication.pm b/apps/tomcat/web/mode/listapplication.pm index 01e41f218..49f457c27 100644 --- a/apps/tomcat/web/mode/listapplication.pm +++ b/apps/tomcat/web/mode/listapplication.pm @@ -31,18 +31,18 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - "hostname:s" => { name => 'hostname' }, - "port:s" => { name => 'port', default => '8080' }, - "proto:s" => { name => 'proto' }, - "credentials" => { name => 'credentials' }, - "basic" => { name => 'basic' }, - "username:s" => { name => 'username' }, - "password:s" => { name => 'password' }, - "timeout:s" => { name => 'timeout' }, - "urlpath:s" => { name => 'url_path', default => '/manager/text/list' }, - "filter-name:s" => { name => 'filter_name', }, - "filter-state:s" => { name => 'filter_state', }, - "filter-path:s" => { name => 'filter_path', }, + 'hostname:s' => { name => 'hostname' }, + 'port:s' => { name => 'port', default => '8080' }, + 'proto:s' => { name => 'proto' }, + 'credentials' => { name => 'credentials' }, + 'basic' => { name => 'basic' }, + 'username:s' => { name => 'username' }, + 'password:s' => { name => 'password' }, + 'timeout:s' => { name => 'timeout' }, + 'urlpath:s' => { name => 'url_path', default => '/manager/text/list' }, + 'filter-name:s' => { name => 'filter_name', }, + 'filter-state:s' => { name => 'filter_state', }, + 'filter-path:s' => { name => 'filter_path', }, }); $self->{result} = {}; @@ -110,9 +110,10 @@ sub disco_show { $self->manage_selection(); foreach my $name (sort(keys %{$self->{result}})) { - $self->{output}->add_disco_entry(name => $name, - state => $self->{result}->{$name}->{state} - ); + $self->{output}->add_disco_entry( + name => $name, + state => $self->{result}->{$name}->{state} + ); } }