This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 322784f  Fix /riak/stats API endpoint
322784f is described below

commit 322784fa898ff15462962dcb874c426788fe6307
Author: Rawlin Peters <rawlin_pet...@comcast.com>
AuthorDate: Mon Jan 29 11:07:44 2018 -0700

    Fix /riak/stats API endpoint
    
    Unwrap the response object similar to the ping endpoint.
---
 traffic_ops/app/lib/API/Riak.pm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/traffic_ops/app/lib/API/Riak.pm b/traffic_ops/app/lib/API/Riak.pm
index cfa1c4a..16e8f8c 100644
--- a/traffic_ops/app/lib/API/Riak.pm
+++ b/traffic_ops/app/lib/API/Riak.pm
@@ -25,9 +25,8 @@ use Data::Dumper;
 sub stats {
        my $self = shift;
 
-       #my $response = $self->riak_stats();
-       my $response = $self->riak_stats();
-       my $content  = $response->{_content};
+       my $response = $self->riak_stats()->{'response'};
+       my $content  = $response->content;
        return $self->success( decode_json($content) );
 }
 

-- 
To stop receiving notification emails like this one, please contact
els...@apache.org.

Reply via email to