mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
devtool: use public influxdb endpoint
This commit is contained in:
@@ -58,8 +58,8 @@ func getServerAttrs(ID string, s *mcclient.ClientSession) (map[string]string, er
|
||||
|
||||
func getInfluxdbURL() (string, error) {
|
||||
|
||||
s := auth.GetAdminSession(nil, "", "")
|
||||
url, err := s.GetServiceURL("influxdb", "")
|
||||
s := auth.GetAdminSessionWithPublic(nil, "", "")
|
||||
url, err := s.GetServiceURL("influxdb", auth.PublicEndpointType)
|
||||
|
||||
if err != nil {
|
||||
log.Errorf("get influxdb Endpoint error %s", err)
|
||||
|
||||
Reference in New Issue
Block a user