mirror of https://github.com/hashicorp/terraform
A consequnce of the work done in #6185 was that variables which were in a module but not set explicitly (i.e. the default value was relied upon) were marked as type errors. This was reported in #6230. This commit adds a test case for this and a patch which fixes the issue.pull/6298/head
parent
dcf0996015
commit
31cc2d2ccd
@ -0,0 +1,12 @@
|
||||
variable "im_a_string" {
|
||||
type = "string"
|
||||
}
|
||||
|
||||
variable "service_region_ami" {
|
||||
type = "map"
|
||||
default = {
|
||||
us-east-1 = "ami-e4c9db8e"
|
||||
}
|
||||
}
|
||||
|
||||
resource "null_resource" "noop" {}
|
||||
@ -0,0 +1,7 @@
|
||||
resource "null_resource" "noop" {}
|
||||
|
||||
module "test" {
|
||||
source = "./inner"
|
||||
|
||||
im_a_string = "hello"
|
||||
}
|
||||
Loading…
Reference in new issue