remove the rand, it's not helping like I thought
This commit is contained in:
parent
4326b6b8b5
commit
5b35b85527
|
@ -2,9 +2,7 @@ package aws
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/resource"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
|
@ -243,7 +241,7 @@ resource "aws_autoscaling_group" "bar" {
|
|||
}
|
||||
`
|
||||
|
||||
var testAccAWSAutoScalingGroupConfigWithLoadBalancer = fmt.Sprintf(`
|
||||
const testAccAWSAutoScalingGroupConfigWithLoadBalancer = `
|
||||
resource "aws_elb" "bar" {
|
||||
name = "foobar-terraform-test"
|
||||
availability_zones = ["us-west-2a"]
|
||||
|
@ -264,7 +262,7 @@ resource "aws_launch_configuration" "foobar" {
|
|||
|
||||
resource "aws_autoscaling_group" "bar" {
|
||||
availability_zones = ["us-west-2a"]
|
||||
name = "foobar3-terraform-test-%d"
|
||||
name = "foobar3-terraform-test"
|
||||
max_size = 5
|
||||
min_size = 2
|
||||
health_check_grace_period = 300
|
||||
|
@ -275,4 +273,4 @@ resource "aws_autoscaling_group" "bar" {
|
|||
launch_configuration = "${aws_launch_configuration.foobar.name}"
|
||||
load_balancers = ["${aws_elb.bar.name}"]
|
||||
}
|
||||
`, rand.New(rand.NewSource(time.Now().UnixNano())).Intn(64))
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue