Skip to content

Commit

Permalink
Fix droplet JSON to support VolumeIDs
Browse files Browse the repository at this point in the history
Before this patch, the Droplet struct had the wrong JSON key for
VolumeIDs, so volumes would not be reflected in a Droplet query.
  • Loading branch information
vivi committed Nov 15, 2016
1 parent a2c1274 commit d9494d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion droplets.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Droplet struct {
Created string `json:"created_at,omitempty"`
Kernel *Kernel `json:"kernel,omitempty"`
Tags []string `json:"tags,ommitempty"`
VolumeIDs []string `json:"volumes"`
VolumeIDs []string `json:"volume_ids"`
}

// PublicIPv4 returns the public IPv4 address for the Droplet.
Expand Down

0 comments on commit d9494d3

Please sign in to comment.