From 97206717fe50e180489abdf25e550c74126b70c2 Mon Sep 17 00:00:00 2001 From: Kieran O'Sullivan <8798449+Kidsan@users.noreply.github.com> Date: Tue, 8 Mar 2022 18:42:27 +0100 Subject: [PATCH] fix: handle optional boolean droplet_agent (#785) closes #779 Co-authored-by: Andrew Starr-Bochicchio --- digitalocean/resource_digitalocean_droplet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }