Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed Syncthing folder status events and exec command.
[src/xds/xds-agent.git]
/
lib
/
agent
/
apiv1-version.go
diff --git
a/lib/agent/apiv1-version.go
b/lib/agent/apiv1-version.go
index
c2387c1
..
6b4923f
100644
(file)
--- a/
lib/agent/apiv1-version.go
+++ b/
lib/agent/apiv1-version.go
@@
-33,7
+33,7
@@
func (s *APIService) getVersion(c *gin.Context) {
svrVer := []version{}
for _, svr := range s.xdsServers {
res := version{}
svrVer := []version{}
for _, svr := range s.xdsServers {
res := version{}
- if err := svr.
HTTPGet("/version",
&res); err != nil {
+ if err := svr.
GetVersion(
&res); err != nil {
common.APIError(c, "Cannot retrieve version of XDS server ID %s : %v", svr.ID, err.Error())
return
}
common.APIError(c, "Cannot retrieve version of XDS server ID %s : %v", svr.ID, err.Error())
return
}