Revert "providers/digitalocean: don't save status and locked"

This reverts commit b9414b832c.
This commit is contained in:
Armon Dadgar 2014-07-28 13:04:17 -04:00
parent bf3ac46c36
commit 0b4950976c
2 changed files with 6 additions and 0 deletions

View File

@ -248,7 +248,9 @@ func resource_digitalocean_droplet_diff(
"ipv4_address", "ipv4_address",
"ipv6", "ipv6",
"ipv6_address", "ipv6_address",
"locked",
"private_networking", "private_networking",
"status",
}, },
} }
@ -274,8 +276,10 @@ func resource_digitalocean_droplet_update_state(
} }
s.Attributes["ipv4_address"] = droplet.IPV4Address() s.Attributes["ipv4_address"] = droplet.IPV4Address()
s.Attributes["locked"] = droplet.IsLocked()
s.Attributes["private_networking"] = droplet.NetworkingType() s.Attributes["private_networking"] = droplet.NetworkingType()
s.Attributes["size"] = droplet.SizeSlug() s.Attributes["size"] = droplet.SizeSlug()
s.Attributes["status"] = droplet.Status
return s, nil return s, nil
} }

View File

@ -46,6 +46,8 @@ The following attributes are exported:
* `ipv6` - Is IPv6 enabled * `ipv6` - Is IPv6 enabled
* `ipv6_address` - The IPv6 address * `ipv6_address` - The IPv6 address
* `ipv4_address` - The IPv4 address * `ipv4_address` - The IPv4 address
* `locked` - Is the Droplet locked
* `private_networking` - Is private networking enabled * `private_networking` - Is private networking enabled
* `size` - The instance size * `size` - The instance size
* `status` - The status of the droplet