no boolean casting needed in this scenario. don't really know why.

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/590e0e7f
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/590e0e7f
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/590e0e7f

Branch: refs/heads/master
Commit: 590e0e7f8b2a5f674c15c808a22de0cab52fc61f
Parents: 721648a
Author: Jeremy Mitchell <mitchell...@gmail.com>
Authored: Wed Mar 22 21:12:53 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Fri Mar 31 09:47:38 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/Tenant.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/590e0e7f/traffic_ops/app/lib/API/Tenant.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Tenant.pm 
b/traffic_ops/app/lib/API/Tenant.pm
index c531a3f..bb62c64 100644
--- a/traffic_ops/app/lib/API/Tenant.pm
+++ b/traffic_ops/app/lib/API/Tenant.pm
@@ -136,7 +136,7 @@ sub update {
                my $response;
                $response->{id}          = $rs->id;
                $response->{name}        = $rs->name;
-               $response->{active}      = \$rs->active;
+               $response->{active}      = $rs->active;
                $response->{parentId}    = $rs->parent_id;
                $response->{lastUpdated} = $rs->last_updated;
                &log( $self, "Updated Tenant name '" . $rs->name . "' for id: " 
. $rs->id, "APICHANGE" );
@@ -190,8 +190,8 @@ sub create {
                my $response;
                $response->{id}                 = $rs->id;
                $response->{name}               = $rs->name;
-               $response->{active}             = \$rs->active;
-               $response->{parentId}           = $rs->parent_id;
+               $response->{active}             = $rs->active;
+               $response->{parentId}           = $rs->parent_id;
                $response->{lastUpdated}        = $rs->last_updated;
 
                &log( $self, "Created Tenant name '" . $rs->name . "' for id: " 
. $rs->id, "APICHANGE" );

Reply via email to