diff --git a/digitalocean/resource_digitalocean_droplet.go b/digitalocean/resource_digitalocean_droplet.go index 7d72d4092..9ca179c41 100644 --- a/digitalocean/resource_digitalocean_droplet.go +++ b/digitalocean/resource_digitalocean_droplet.go @@ -267,7 +267,7 @@ func resourceDigitalOceanDropletCreate(ctx context.Context, d *schema.ResourceDa opts.Monitoring = attr.(bool) } - if attr, ok := d.GetOk("droplet_agent"); ok { + if attr, ok := d.GetOkExists("droplet_agent"); ok { opts.WithDropletAgent = boolPtr(attr.(bool)) }