Repository: incubator-trafficcontrol Updated Branches: refs/heads/master d34fb3303 -> bf2f8a63b
Fix failure in t_integration/server.t by translating a profile name to id if needed Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b8b7a51c Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b8b7a51c Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b8b7a51c Branch: refs/heads/master Commit: b8b7a51cb773daff0db2610c19f6f793b5e8788b Parents: 8c5ac3b Author: nir-sopher <nirsop...@gmail.com> Authored: Thu Mar 16 15:07:45 2017 +0200 Committer: Jeremy Mitchell <mitchell...@gmail.com> Committed: Thu Apr 6 15:09:16 2017 -0600 ---------------------------------------------------------------------- traffic_ops/app/lib/UI/UploadHandlerCsv.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b8b7a51c/traffic_ops/app/lib/UI/UploadHandlerCsv.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/UI/UploadHandlerCsv.pm b/traffic_ops/app/lib/UI/UploadHandlerCsv.pm index b34d1fe..139b24a 100644 --- a/traffic_ops/app/lib/UI/UploadHandlerCsv.pm +++ b/traffic_ops/app/lib/UI/UploadHandlerCsv.pm @@ -406,10 +406,10 @@ sub replaceNamedLookupValues { $paramHashRef->{'type'} = $typeHashRef->{ $paramHashRef->{'type'} }; # } - # if ($paramHashRef->{'profile'} !~ /^[+-]?\d+$/) { - $paramHashRef->{'profile'} = $profileHashRef->{ $paramHashRef->{'profile'} }; + if ($paramHashRef->{'profile'} !~ /^[+-]?\d+$/) { + $paramHashRef->{'profile'} = $profileHashRef->{ $paramHashRef->{'profile'} }; - # } + } # if ($paramHashRef->{'phys_location'} !~ /^[+-]?\d+$/) { $paramHashRef->{'phys_location'} = $physLocationHashRef->{ $paramHashRef->{'phys_location'} };