Skip to content

Commit dc9cb0c

Browse files
committed
fix(huawei): skip empty response
1 parent 95ed5a2 commit dc9cb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/multicloud/huawei/huawei.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (self *SHuaweiClient) request(method httputils.THttpMethod, regionId, url s
308308
return nil, err
309309
}
310310
if gotypes.IsNil(resp) {
311-
return nil, fmt.Errorf("empty response return")
311+
return jsonutils.NewDict(), nil
312312
}
313313
return resp, nil
314314
}

0 commit comments

Comments
 (0)