Fix some formatting to be 0.12-ready (#2800)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2019-01-04 13:01:39 -08:00 committed by Riley Karson
parent e2d2bf4806
commit 50af33999e
4 changed files with 7 additions and 9 deletions

View File

@ -256,7 +256,7 @@ resource "google_compute_autoscaler" "foobar" {
max_replicas = 5
min_replicas = 1
cooldown_period = 60
cpu_utilization = {
cpu_utilization {
target = 0.5
}
}
@ -276,7 +276,7 @@ resource "google_compute_autoscaler" "foobar" {
max_replicas = 10
min_replicas = 1
cooldown_period = 60
cpu_utilization = {
cpu_utilization {
target = 0.5
}
}
@ -296,10 +296,10 @@ resource "google_compute_autoscaler" "foobar" {
max_replicas = 10
min_replicas = 1
cooldown_period = 60
cpu_utilization = {
cpu_utilization {
target = 0.5
}
load_balancing_utilization = {
load_balancing_utilization {
target = 0.5
}
metric {

View File

@ -257,7 +257,7 @@ func testAccComputeInstanceGroup_updated(n string, size int64, instanceGroup *co
// Cannot check the target pool as the instance creation is asynchronous. However, can
// check the target_size.
if instanceGroup.Size != size {
return fmt.Errorf("instance count incorrect")
return fmt.Errorf("instance count incorrect. saw real value %v instead of expected value %v", instanceGroup.Size, size)
}
return nil

View File

@ -2860,8 +2860,6 @@ resource "google_compute_instance" "foobar" {
subnetwork_range_name = "${google_compute_subnetwork.inst-test-subnetwork.secondary_ip_range.1.range_name}"
ip_cidr_range = "10.1.0.0/20"
}
]
}
}`, network, subnet, instance)
}

View File

@ -183,7 +183,7 @@ resource "google_compute_region_autoscaler" "foobar" {
max_replicas = 5
min_replicas = 1
cooldown_period = 60
cpu_utilization = {
cpu_utilization {
target = 0.5
}
}
@ -244,7 +244,7 @@ resource "google_compute_region_autoscaler" "foobar" {
max_replicas = 10
min_replicas = 1
cooldown_period = 60
cpu_utilization = {
cpu_utilization {
target = 0.5
}
}