Skip to content

Commit

Permalink
bug: resource pool create return pool object (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis authored Jan 3, 2024
1 parent 299a5c1 commit 6353a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/resource_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import "github.com/maas/gomaasclient/entity"
// ResourcePools is an interface for listing and creating ResourcePool records
type ResourcePools interface {
Get() ([]entity.ResourcePool, error)
Create(params *entity.ResourcePoolParams) (*entity.Domain, error)
Create(params *entity.ResourcePoolParams) (*entity.ResourcePool, error)
}
2 changes: 2 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func constructClient(apiClient *APIClient) *Client {
BlockDevicePartitions: &BlockDevicePartitions{APIClient: *apiClient},
User: &User{APIClient: *apiClient},
Users: &Users{APIClient: *apiClient},
ResourcePool: &ResourcePool{APIClient: *apiClient},
ResourcePools: &ResourcePools{APIClient: *apiClient},
}

return &client
Expand Down

0 comments on commit 6353a21

Please sign in to comment.