Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 2ee18ddac -> 8254ca71e


fix hostname reference in profile parameter lookups


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

Branch: refs/heads/master
Commit: 8254ca71ebce7eb2f7875841280926cf5d1d8ebf
Parents: a12dcad
Author: Derek Gelinas <derek_geli...@cable.comcast.com>
Authored: Thu Apr 6 18:54:19 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 | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8254ca71/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 6385589..385a72a 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -438,6 +438,9 @@ sub profile_param_data {
                if ( defined( $data->{$key} ) ) {
                        $key .= "__" . $row->parameter->id;
                }
+               if ( $value =~ /^STRING __HOSTNAME__$/ ) {
+                       $value = "STRING " . "__FULL_HOSTNAME__";
+               }
                $data->{$key} = $value;
        }
        return $data;

Reply via email to