v1.15.3
This commit is contained in:
@@ -123,7 +123,7 @@ func TestGetListCloudAPI(t *testing.T) {
|
||||
getResult("Compute list", bytes, compute.ListComputes{}, t)
|
||||
// Get
|
||||
listComp, _ := client.CloudAPI().Compute().List(context.Background(), compute.ListRequest{})
|
||||
if len(listComp.Data) > 0 {
|
||||
if listComp != nil && len(listComp.Data) > 0 {
|
||||
id := listComp.Data[0].ID
|
||||
bytes, err = client.CloudAPI().Compute().GetRaw(context.Background(), compute.GetRequest{ComputeID: id})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user