providers/digitalocean: don't save status and locked
This commit is contained in:
parent
37f4e28a4f
commit
b9414b832c
|
@ -248,9 +248,7 @@ func resource_digitalocean_droplet_diff(
|
||||||
"ipv4_address",
|
"ipv4_address",
|
||||||
"ipv6",
|
"ipv6",
|
||||||
"ipv6_address",
|
"ipv6_address",
|
||||||
"locked",
|
|
||||||
"private_networking",
|
"private_networking",
|
||||||
"status",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,10 +274,8 @@ 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,6 @@ 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
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue