mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Make licenses field of images computed.
Images now have a licenses field, which lets users specify licenses to use on an image. But official images already have licenses on them, adn so Terraform is reading those as a diff. To preserve backwards compatiblity and avoid a breaking change that would require all `google_compute_image` users to update their configs, I've set the field to computed. This means that if no licenses are set in the config, there can be licenses in the config without prompting a diff. Obviously, this isn't ideal, as it means you can't ever remove all the licenses from an image, but I think the benefits here outweigh the drawbacks.
This commit is contained in:
parent
7b3ee2bc3e
commit
a29a0cbbda
@ -111,6 +111,7 @@ func resourceComputeImage() *schema.Resource {
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"label_fingerprint": &schema.Schema{
|
||||
|
Loading…
Reference in New Issue
Block a user