Skip to content

Commit

Permalink
fix: restore convenience function for GetPoolType (#50)
Browse files Browse the repository at this point in the history
* fix: restore convenience method for GetPoolType
  • Loading branch information
David-T-White authored Oct 31, 2023
1 parent ff8dfe7 commit a8a8078
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/api/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ func Log(system *common.SystemInfo) error {
return nil
}

// GetPoolType: Return the pool type of the storage system
func (client *Client) GetPoolType(pool string) (string, error) {
return GetPoolType(client.Info, pool)
}

// GetPoolType: Return the pool type for a given pool
func GetPoolType(system *common.SystemInfo, pool string) (string, error) {
if system == nil {
Expand Down

0 comments on commit a8a8078

Please sign in to comment.