mirror of
https://github.com/FlipsideCrypto/databricks-sdk-golang.git
synced 2026-02-06 10:57:34 +00:00
fix: handle err in get cluster
This commit is contained in:
parent
496587c3bf
commit
ca2d7b82bc
@ -108,6 +108,9 @@ func (a ClustersAPI) Get(clusterID string) (models.ClusterInfo, error) {
|
||||
clusterID,
|
||||
}
|
||||
resp, err := a.Client.performQuery(http.MethodGet, "/clusters/get", data, nil)
|
||||
if err != nil {
|
||||
return clusterInfo, err
|
||||
}
|
||||
|
||||
err = json.Unmarshal(resp, &clusterInfo)
|
||||
return clusterInfo, err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user