rob05c commented on issue #4534: Fix ORT atstccfg to allow using new features in the latest Traffic Ops URL: https://github.com/apache/trafficcontrol/pull/4534#issuecomment-605352823 @mhoppa Ok, I just ran it with a master TO, and my TO logs have: ``` 172.18.0.1:55408 - rbutts201 [27/Mar/2020:23:12:43 +0000] "GET /api/1.4/deliveryservices_required_capabilities? HTTP/1.1" 200 40 10 "atstccfg/0.2" 172.18.0.1:55480 - rbutts201 [27/Mar/2020:23:12:43 +0000] "GET /api/2.0/deliveryservices?cdn=2 HTTP/1.1" 200 52384 66 "atstccfg/0.2" 172.18.0.1:55446 - rbutts201 [27/Mar/2020:23:12:44 +0000] "GET /api/1.4/deliveryservices_regexes.json? HTTP/1.1" 200 9558 974 "atstccfg/0.2" 172.18.0.1:55434 - rbutts201 [27/Mar/2020:23:12:45 +0000] "GET /api/1.4/deliveryserviceserver?limit=999999 HTTP/1.1" 200 2493286 1907 "atstccfg/0.2" ``` Which is exactly what I'd expect, requesting 2.0 for the `toreqnew` call, and 1.4 for all the other `toreq` funcs. Just to be sure, I also added a debug print in the master not-vendored `traffic_ops/client`, and saw it get printed: ``` ERROR: deliveryservice.go:164: 2020-03-27T17:12:43.522066-06:00: DEBUG master GetDeliveryServicesByCDNID path '/api/2.0/deliveryservices?cdn=2' apiBase '/api/2.0' ``` Is it possible the client in your master `traffic_ops/client` dir is still 1.4 somehow? Alternatively, is it possible you have a vendored directory somewhere? Go will check for one all the way up, e.g. if there's one in `/` or `/traffic_ops` or `/traffic_ops/ort` or `/traffic_ops/ort/atstccfg` it'll use that. In particular, this PR moves the vendor dir from `/traffic_ops/ort` to `toreq` - which, git moves are actually dones as delete and create - did the delete not work, is `/traffic_ops/ort/vendor` still there?
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
