Skip to content

Commit

Permalink
fix: handle optional boolean droplet_agent (#785)
Browse files Browse the repository at this point in the history
closes #779

Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
  • Loading branch information
Kidsan and andrewsomething authored Mar 8, 2022
1 parent 438f41a commit 9720671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digitalocean/resource_digitalocean_droplet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 9720671

Please sign in to comment.