Skip to content

Commit 0b49509

Browse files
committed
Revert "providers/digitalocean: don't save status and locked"
This reverts commit b9414b8.
1 parent bf3ac46 commit 0b49509

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

builtin/providers/digitalocean/resource_digitalocean_droplet.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ func resource_digitalocean_droplet_diff(
248248
"ipv4_address",
249249
"ipv6",
250250
"ipv6_address",
251+
"locked",
251252
"private_networking",
253+
"status",
252254
},
253255
}
254256

@@ -274,8 +276,10 @@ func resource_digitalocean_droplet_update_state(
274276
}
275277

276278
s.Attributes["ipv4_address"] = droplet.IPV4Address()
279+
s.Attributes["locked"] = droplet.IsLocked()
277280
s.Attributes["private_networking"] = droplet.NetworkingType()
278281
s.Attributes["size"] = droplet.SizeSlug()
282+
s.Attributes["status"] = droplet.Status
279283

280284
return s, nil
281285
}

website/source/docs/providers/do/r/droplet.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ The following attributes are exported:
4646
* `ipv6` - Is IPv6 enabled
4747
* `ipv6_address` - The IPv6 address
4848
* `ipv4_address` - The IPv4 address
49+
* `locked` - Is the Droplet locked
4950
* `private_networking` - Is private networking enabled
5051
* `size` - The instance size
52+
* `status` - The status of the droplet
5153

0 commit comments

Comments
 (0)