Skip to content

Commit

Permalink
Update droplets.go
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
  • Loading branch information
loosla and andrewsomething authored Oct 31, 2024
1 parent 86c70c3 commit 313e078
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion droplets.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,12 @@ func (s *DropletsServiceOp) GetBackupPolicy(ctx context.Context, dropletID int)
}

// List all droplet backup policies.
func (s *DropletsServiceOp) ListBackupPolicies(ctx context.Context) ([]*DropletBackupPolicy, *Response, error) {
func (s *DropletsServiceOp) ListBackupPolicies(ctx context.Context, opt *ListOptions) (map[int]*DropletBackupPolicy, *Response, error) {
path := fmt.Sprintf("%s/backups/policies", dropletBasePath)
path, err := addOptions(path, opt)
if err != nil {
return nil, nil, err
}
req, err := s.client.NewRequest(ctx, http.MethodGet, path, nil)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 313e078

Please sign in to comment.