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:
Patrick Decat 2016-11-07 11:42:38 +01:00 committed by Paul Stack
parent 31a685e29b
commit 4be9a42ab0
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@ resource "google_compute_instance_template" "foobar" {
instance_description = "description assigned to instances"
machine_type = "n1-standard-1"
can_ip_forward = false
automatic_restart = true
on_host_maintenance = "MIGRATE"
scheduling {
automatic_restart = true
on_host_maintenance = "MIGRATE"
}
// Create a new boot disk from an image
disk {