diff --git a/builtin/providers/digitalocean/resource_digitalocean_droplet.go b/builtin/providers/digitalocean/resource_digitalocean_droplet.go index 39337d0678..2e925d3942 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_droplet.go +++ b/builtin/providers/digitalocean/resource_digitalocean_droplet.go @@ -248,7 +248,9 @@ func resource_digitalocean_droplet_diff( "ipv4_address", "ipv6", "ipv6_address", + "locked", "private_networking", + "status", }, } @@ -274,8 +276,10 @@ func resource_digitalocean_droplet_update_state( } s.Attributes["ipv4_address"] = droplet.IPV4Address() + s.Attributes["locked"] = droplet.IsLocked() s.Attributes["private_networking"] = droplet.NetworkingType() s.Attributes["size"] = droplet.SizeSlug() + s.Attributes["status"] = droplet.Status return s, nil } diff --git a/website/source/docs/providers/do/r/droplet.html.markdown b/website/source/docs/providers/do/r/droplet.html.markdown index 1fda12faed..6a913d71e2 100644 --- a/website/source/docs/providers/do/r/droplet.html.markdown +++ b/website/source/docs/providers/do/r/droplet.html.markdown @@ -46,6 +46,8 @@ The following attributes are exported: * `ipv6` - Is IPv6 enabled * `ipv6_address` - The IPv6 address * `ipv4_address` - The IPv4 address +* `locked` - Is the Droplet locked * `private_networking` - Is private networking enabled * `size` - The instance size +* `status` - The status of the droplet