Merge pull request #1061 from hashicorp/digitalocean-droplet-bools

providers/digitalocean: use real bools for droplet creation
This commit is contained in:
Jack Pearkes 2015-02-26 13:28:16 -08:00
commit 03cd4ec604
1 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ func resourceDigitalOceanDroplet() *schema.Resource {
}, },
"backups": &schema.Schema{ "backups": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeBool,
Optional: true, Optional: true,
}, },
@ -112,15 +112,15 @@ func resourceDigitalOceanDropletCreate(d *schema.ResourceData, meta interface{})
} }
if attr, ok := d.GetOk("backups"); ok { if attr, ok := d.GetOk("backups"); ok {
opts.Backups = attr.(string) opts.Backups = attr.(bool)
} }
if attr, ok := d.GetOk("ipv6"); ok && attr.(bool) { if attr, ok := d.GetOk("ipv6"); ok {
opts.IPV6 = "true" opts.IPV6 = attr.(bool)
} }
if attr, ok := d.GetOk("private_networking"); ok && attr.(bool) { if attr, ok := d.GetOk("private_networking"); ok {
opts.PrivateNetworking = "true" opts.PrivateNetworking = attr.(bool)
} }
if attr, ok := d.GetOk("user_data"); ok { if attr, ok := d.GetOk("user_data"); ok {