dmohan001c commented on a change in pull request #6003:
URL: https://github.com/apache/trafficcontrol/pull/6003#discussion_r700010192



##########
File path: traffic_ops/v2-client/profile.go
##########
@@ -164,7 +164,8 @@ func (to *Session) GetProfileByName(name string) 
([]tc.Profile, ReqInf, error) {
 
 // GetProfileByParameter GETs a Profile by the Profile "param".
 func (to *Session) GetProfileByParameter(param string) ([]tc.Profile, ReqInf, 
error) {
-       URI := fmt.Sprintf("%s?param=%s", API_PROFILES, url.QueryEscape(param))
+       paramId, _ := strconv.Atoi(url.QueryEscape(param))

Review comment:
       If we keep the existing methods as per your advice, if someone 
accidentally calls the existing method, it will throw an error, since that API 
is not anymore supported string.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to