diff --git a/hack/do-janitor/do-janitor.go b/hack/do-janitor/do-janitor.go index f2ff1b5d5..b7a3027f6 100644 --- a/hack/do-janitor/do-janitor.go +++ b/hack/do-janitor/do-janitor.go @@ -187,7 +187,9 @@ func volumeList(ctx context.Context, client *godo.Client) ([]godo.Volume, error) list := []godo.Volume{} // create options. initially, these will be blank - opt := &godo.ListVolumeParams{} + opt := &godo.ListVolumeParams{ + ListOptions: &godo.ListOptions{}, + } for { volumes, resp, err := client.Storage.ListVolumes(ctx, opt) if err != nil {