You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/04/06 20:04:46 UTC
[2/6] incubator-trafficcontrol git commit: fix hostname reference in
profile parameter lookups
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/ff0126d8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/ff0126d8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/ff0126d8
Branch: refs/heads/master
Commit: ff0126d8625ae9bc43fdd0d3b55dea34c624763d
Parents: b82139b
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Thu Apr 6 18:54:19 2017 +0000
Committer: Dewayne Richardson <de...@apache.org>
Committed: Thu Apr 6 13:20:12 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/ff0126d8/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;