modifies name to fname on disk and fixes rev proxy url lookup
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/a12dcad1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/a12dcad1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/a12dcad1 Branch: refs/heads/master Commit: a12dcad14645f8f9b1a03c715598b50e5dbb3a0f Parents: 7c64bf7 Author: Derek Gelinas <derek_geli...@cable.comcast.com> Authored: Thu Apr 6 17:26:56 2017 +0000 Committer: Dewayne Richardson <dewr...@apache.org> Committed: Thu Apr 6 13:49:03 2017 -0600 ---------------------------------------------------------------------- traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/a12dcad1/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm index ed36d0c..6385589 100644 --- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm +++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm @@ -64,7 +64,7 @@ sub get_config_metadata { my %condition = ( 'me.host_name' => $host_name ); my $rs_server = $self->db->resultset('Server')->search( \%condition, { prefetch => [ 'cdn', 'profile' ] } ); my $tm_url = $self->db->resultset('Parameter')->search( { -and => [ name => 'tm.url', config_file => 'global' ] } )->get_column('value')->first(); - my $tm_rev_proxy_url = $self->db->resultset('Parameter')->search( { -and => [ name => 'tm_rev_proxy.url', config_file => 'global' ] } )->get_column('value')->first(); + my $tm_rev_proxy_url = $self->db->resultset('Parameter')->search( { -and => [ name => 'tm.rev_proxy.url', config_file => 'global' ] } )->get_column('value')->first(); my $cdn_name = $server_obj->cdn->name; my $server = $rs_server->next; my $config_file_obj; @@ -95,7 +95,7 @@ sub get_config_metadata { my $rs_param = $self->db->resultset('Parameter')->search( \%condition, { join => 'profile_parameters' } ); while ( my $param = $rs_param->next ) { if ( $param->name eq 'location' ) { - $config_file_obj->{ $param->config_file }->{'name'} = $param->config_file; + $config_file_obj->{ $param->config_file }->{'fnameOnDisk'} = $param->config_file; $config_file_obj->{ $param->config_file }->{'location'} = $param->value; }