This is an automated email from the ASF dual-hosted git repository.
zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 9e384c6017 Use V5 response struct for GetParametersByProfileName
(#7780)
9e384c6017 is described below
commit 9e384c6017cc5c740427ba57719f195cc4cac9d0
Author: Zach Hoffman <[email protected]>
AuthorDate: Wed Sep 6 11:04:58 2023 -0600
Use V5 response struct for GetParametersByProfileName (#7780)
---
traffic_ops/v5-client/profile.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/traffic_ops/v5-client/profile.go b/traffic_ops/v5-client/profile.go
index 09b18b4d15..4b6f6e4317 100644
--- a/traffic_ops/v5-client/profile.go
+++ b/traffic_ops/v5-client/profile.go
@@ -70,9 +70,9 @@ func (to *Session) UpdateProfile(id int, pl tc.ProfileV5,
opts RequestOptions) (
// GetParametersByProfileName returns all of the Parameters that are assigned
// to the Profile with the given Name.
-func (to *Session) GetParametersByProfileName(profileName string, opts
RequestOptions) (tc.ParametersResponse, toclientlib.ReqInf, error) {
+func (to *Session) GetParametersByProfileName(profileName string, opts
RequestOptions) (tc.ParametersResponseV5, toclientlib.ReqInf, error) {
route := fmt.Sprintf(apiProfilesNameParameters, profileName)
- var data tc.ParametersResponse
+ var data tc.ParametersResponseV5
reqInf, err := to.get(route, opts, &data)
return data, reqInf, err
}