From d11dd20bf3537a2d8237b75c89fa20ae284fefd3 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 1 Oct 2018 16:11:50 -0700 Subject: [PATCH] builtin/providers/test: use new API for root module address terraform.RootModulePath is no longer present, but addrs.RootModuleInstance is equivalent to it. --- builtin/providers/test/resource_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/providers/test/resource_test.go b/builtin/providers/test/resource_test.go index a8d9250acd..714e698d4a 100644 --- a/builtin/providers/test/resource_test.go +++ b/builtin/providers/test/resource_test.go @@ -6,6 +6,7 @@ import ( "strings" "testing" + "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -464,7 +465,7 @@ output "value_from_map_from_list" { `), ExpectError: nil, Check: func(s *terraform.State) error { - root := s.ModuleByPath(terraform.RootModulePath) + root := s.ModuleByPath(addrs.RootModuleInstance) mapOut := root.Outputs["map_from_list"].Value expectedMapOut := map[string]interface{}{ "a": "1",