Revert "providers/digitalocean: don't save status and locked"
This reverts commit b9414b832c
.
This commit is contained in:
parent
bf3ac46c36
commit
0b4950976c
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue