diff --git a/README.md b/README.md index 53728a7c1..8a8dac928 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Terraform Provider for PagerDuty Requirements ------------ -- [Terraform](https://www.terraform.io/downloads.html) 0.10.x +- [Terraform](https://www.terraform.io/downloads.html) 0.12.x - [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin) Building The Provider diff --git a/pagerduty/data_source_pagerduty_escalation_policy_test.go b/pagerduty/data_source_pagerduty_escalation_policy_test.go index 0de48bd8b..476bdc7ec 100644 --- a/pagerduty/data_source_pagerduty_escalation_policy_test.go +++ b/pagerduty/data_source_pagerduty_escalation_policy_test.go @@ -69,13 +69,13 @@ resource "pagerduty_escalation_policy" "test" { target { type = "user_reference" - id = "${pagerduty_user.test.id}" + id = pagerduty_user.test.id } } } data "pagerduty_escalation_policy" "by_name" { - name = "${pagerduty_escalation_policy.test.name}" + name = pagerduty_escalation_policy.test.name } `, username, email, escalationPolicy) } diff --git a/pagerduty/data_source_pagerduty_schedule_test.go b/pagerduty/data_source_pagerduty_schedule_test.go index 835aaa7d3..5506fa97a 100644 --- a/pagerduty/data_source_pagerduty_schedule_test.go +++ b/pagerduty/data_source_pagerduty_schedule_test.go @@ -74,7 +74,7 @@ resource "pagerduty_schedule" "test" { start = "%s" rotation_virtual_start = "%s" rotation_turn_length_seconds = 86400 - users = ["${pagerduty_user.test.id}"] + users = [pagerduty_user.test.id] restriction { type = "weekly_restriction" @@ -86,7 +86,7 @@ resource "pagerduty_schedule" "test" { } data "pagerduty_schedule" "by_name" { - name = "${pagerduty_schedule.test.name}" + name = pagerduty_schedule.test.name } `, username, email, schedule, location, start, rotationVirtualStart) } diff --git a/pagerduty/data_source_pagerduty_service_test.go b/pagerduty/data_source_pagerduty_service_test.go index 8c2371294..3d2141f0d 100644 --- a/pagerduty/data_source_pagerduty_service_test.go +++ b/pagerduty/data_source_pagerduty_service_test.go @@ -68,7 +68,7 @@ resource "pagerduty_escalation_policy" "test" { escalation_delay_in_minutes = 10 target { type = "user_reference" - id = "${pagerduty_user.test.id}" + id = pagerduty_user.test.id } } } @@ -77,12 +77,12 @@ resource "pagerduty_service" "test" { name = "%s" auto_resolve_timeout = 14400 acknowledgement_timeout = 600 - escalation_policy = "${pagerduty_escalation_policy.test.id}" + escalation_policy = pagerduty_escalation_policy.test.id alert_creation = "create_incidents" } data "pagerduty_service" "by_name" { - name = "${pagerduty_service.test.name}" + name = pagerduty_service.test.name } `, username, email, service, escalationPolicy) } diff --git a/pagerduty/data_source_pagerduty_team_test.go b/pagerduty/data_source_pagerduty_team_test.go index 97981311c..6f784dabd 100644 --- a/pagerduty/data_source_pagerduty_team_test.go +++ b/pagerduty/data_source_pagerduty_team_test.go @@ -60,7 +60,7 @@ resource "pagerduty_team" "test" { } data "pagerduty_team" "by_name" { - name = "${pagerduty_team.test.name}" + name = pagerduty_team.test.name } `, name, description) } diff --git a/pagerduty/data_source_pagerduty_user_test.go b/pagerduty/data_source_pagerduty_user_test.go index 19d1a8c02..e6bc5221f 100644 --- a/pagerduty/data_source_pagerduty_user_test.go +++ b/pagerduty/data_source_pagerduty_user_test.go @@ -60,7 +60,7 @@ resource "pagerduty_user" "test" { } data "pagerduty_user" "by_email" { - email = "${pagerduty_user.test.email}" + email = pagerduty_user.test.email } `, username, email) } diff --git a/pagerduty/resource_pagerduty_escalation_policy_test.go b/pagerduty/resource_pagerduty_escalation_policy_test.go index 6109c1984..43a457f0b 100644 --- a/pagerduty/resource_pagerduty_escalation_policy_test.go +++ b/pagerduty/resource_pagerduty_escalation_policy_test.go @@ -215,7 +215,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } } @@ -243,7 +243,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } @@ -252,7 +252,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } } @@ -279,14 +279,14 @@ resource "pagerduty_escalation_policy" "foo" { name = "%s" description = "foo" num_loops = 1 - teams = ["${pagerduty_team.foo.id}"] + teams = [pagerduty_team.foo.id] rule { escalation_delay_in_minutes = 10 target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } } @@ -319,7 +319,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } @@ -328,7 +328,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } } diff --git a/pagerduty/resource_pagerduty_extension_test.go b/pagerduty/resource_pagerduty_extension_test.go index f58d3cf8f..a2d85ca06 100644 --- a/pagerduty/resource_pagerduty_extension_test.go +++ b/pagerduty/resource_pagerduty_extension_test.go @@ -154,7 +154,7 @@ resource "pagerduty_escalation_policy" "foo" { target { type = "user_reference" - id = "${pagerduty_user.foo.id}" + id = pagerduty_user.foo.id } } } @@ -164,7 +164,7 @@ resource "pagerduty_service" "foo" { description = "foo" auto_resolve_timeout = 1800 acknowledgement_timeout = 1800 - escalation_policy = "${pagerduty_escalation_policy.foo.id}" + escalation_policy = pagerduty_escalation_policy.foo.id incident_urgency_rule { type = "constant" @@ -179,8 +179,8 @@ data "pagerduty_extension_schema" "foo" { resource "pagerduty_extension" "foo"{ name = "%s" endpoint_url = "%s" - extension_schema = "${data.pagerduty_extension_schema.foo.id}" - extension_objects = ["${pagerduty_service.foo.id}"] + extension_schema = data.pagerduty_extension_schema.foo.id + extension_objects = [pagerduty_service.foo.id] config = <