This is an automated email from the ASF dual-hosted git repository. ocket8888 pushed a commit to branch 5.0.x in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit cdc93546ff5e014e1cb774d20ff293b3dc2ee93a Author: Myles B <[email protected]> AuthorDate: Fri Nov 20 23:06:03 2020 -0700 tweaked condition used to determine what api version to return upon updating a server (#5315) (cherry picked from commit 424241fabaf0c841609dca6149bcdb63f12efa7c) --- traffic_ops/traffic_ops_golang/server/servers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffic_ops/traffic_ops_golang/server/servers.go b/traffic_ops/traffic_ops_golang/server/servers.go index bb91fd5..3765e86 100644 --- a/traffic_ops/traffic_ops_golang/server/servers.go +++ b/traffic_ops/traffic_ops_golang/server/servers.go @@ -1362,7 +1362,7 @@ func Update(w http.ResponseWriter, r *http.Request) { return } api.WriteRespAlertObj(w, r, tc.SuccessLevel, "Server updated", tc.ServerNullable{CommonServerProperties: server.CommonServerProperties, Interfaces: interfaces, StatusLastUpdated: &statusLastUpdatedTime}) - } else if inf.Version.Minor <= 1 { + } else if inf.Version.Major == 1 { api.WriteRespAlertObj(w, r, tc.SuccessLevel, "Server updated", server.ServerNullableV11) } else { api.WriteRespAlertObj(w, r, tc.SuccessLevel, "Server updated", server)
