fix: mcclient code cleanup 20221106 (#15310)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2022-11-07 02:19:24 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 488be6b7fb
commit 5d9d253328
85 changed files with 2323 additions and 415 deletions
+1 -2
View File
@@ -60,9 +60,8 @@ func getServerAttrs(ID string, s *mcclient.ClientSession) (map[string]string, er
}
func getInfluxdbURL() (string, error) {
s := auth.GetAdminSessionWithPublic(nil, "")
url, err := s.GetServiceURL("influxdb", apiidentity.EndpointInterfacePublic, "")
url, err := s.GetServiceURL("influxdb", apiidentity.EndpointInterfacePublic)
if err != nil {
log.Errorf("get influxdb Endpoint error %s", err)