fix: query params support + remove duplicate response wrappers + fix tests
This commit is contained in:
@@ -17,7 +17,7 @@ func (s *StorageService) List(ctx context.Context) ([]provider.StorageInstance,
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
if err := s.client.get(ctx, "/product/ros/instance", &raw); err != nil {
|
||||
if err := s.client.getWithQuery(ctx, "/product/ros/instance", map[string]string{"options": "1"}, &raw); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
instances := make([]provider.StorageInstance, len(raw))
|
||||
|
||||
Reference in New Issue
Block a user