Skip to content

Commit

Permalink
Merge pull request #3284 from stack72/do_size_slug
Browse files Browse the repository at this point in the history
provider/digitalocean - Droplet Size Lowercase
  • Loading branch information
phinze committed Oct 12, 2015
2 parents e8cfc5e + 9ac39a3 commit 22681c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func resourceDigitalOceanDroplet() *schema.Resource {
"size": &schema.Schema{
Type: schema.TypeString,
Required: true,
StateFunc: func(val interface{}) string {
// DO API V2 size slug is always lowercase
return strings.ToLower(val.(string))
},
},

"status": &schema.Schema{
Expand Down

0 comments on commit 22681c3

Please sign in to comment.