mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-13 08:56:32 -06:00
Fix deprecation warnings for automatic_restart and on_host_maintenance parameters (#9909)
Fix Warnings: ``` * google_compute_instance_template.nat: "automatic_restart": [DEPRECATED] Please use `scheduling.automatic_restart` instead * google_compute_instance_template.nat: "on_host_maintenance": [DEPRECATED] Please use `scheduling.on_host_maintenance` instead ```
This commit is contained in:
parent
31a685e29b
commit
4be9a42ab0
@ -27,8 +27,11 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
instance_description = "description assigned to instances"
|
instance_description = "description assigned to instances"
|
||||||
machine_type = "n1-standard-1"
|
machine_type = "n1-standard-1"
|
||||||
can_ip_forward = false
|
can_ip_forward = false
|
||||||
|
|
||||||
|
scheduling {
|
||||||
automatic_restart = true
|
automatic_restart = true
|
||||||
on_host_maintenance = "MIGRATE"
|
on_host_maintenance = "MIGRATE"
|
||||||
|
}
|
||||||
|
|
||||||
// Create a new boot disk from an image
|
// Create a new boot disk from an image
|
||||||
disk {
|
disk {
|
||||||
|
Loading…
Reference in New Issue
Block a user