From 8d218a1567b90ff29040c717a9fc6f0137c4eb8b Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 5 Dec 2019 15:21:40 +0100 Subject: [PATCH] fix couchdb --- database/couchdb/restapi/mode/server.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/couchdb/restapi/mode/server.pm b/database/couchdb/restapi/mode/server.pm index c963c9166..c1c738a9b 100644 --- a/database/couchdb/restapi/mode/server.pm +++ b/database/couchdb/restapi/mode/server.pm @@ -37,7 +37,7 @@ sub custom_server_output { sub custom_compaction_output { my ($self, %options) = @_; - my $msg = 'compaction status is ' . $self->{result_values}->{compaction_status}; + my $msg = "compaction status is '" . $self->{result_values}->{compaction_status} . "'"; return $msg; } @@ -149,7 +149,7 @@ sub manage_selection { my ($self, %options) = @_; my $results = $options{custom}->request_api(url_path => '/_up'); - $self->{global} = { status => $results->{custom_compaction_output} }; + $self->{global} = { status => $results->{status} }; $results = $options{custom}->request_api(url_path => '/_all_dbs'); my $db = { @@ -180,7 +180,7 @@ sub manage_selection { $self->{database}->{$_->{info}->{db_name}} = { display => $_->{info}->{db_name}, - compaction_status => $_->{info}->{compact_running} ? 'running' : 'notrunning', + compaction_status => $_->{info}->{compact_running} ? 'running' : 'notRunning', doc_count => $_->{info}->{doc_count}, doc_del_count => $_->{info}->{doc_del_count}, sizes_active => $_->{info}->{sizes}->{active},