Merge pull request #8 from Azadehkhojandi/fix/7

update get cluster path
This commit is contained in:
Xinyun Zhou 2019-10-22 14:35:06 +11:00 committed by GitHub
commit 5dd1a59dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ func (a ClustersAPI) Get(clusterID string) (models.ClusterInfo, error) {
}{
clusterID,
}
resp, err := a.Client.performQuery(http.MethodGet, "/clusters/get-delete", data, nil)
resp, err := a.Client.performQuery(http.MethodGet, "/clusters/get", data, nil)
err = json.Unmarshal(resp, &clusterInfo)
return clusterInfo, err