mirror of https://github.com/hashicorp/terraform
In configurations which have already been initialized, updating the source of a non-root module call to an invalid value could cause a nil pointer panic. This commit fixes the bug and adds test coverage.alisdair/fix-configload-snapshot-panic
parent
1fd140ff83
commit
d1e35a3f7c
@ -0,0 +1 @@
|
||||
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"foo","Source":"./foo","Dir":"foo"},{"Key":"foo.bar","Source":"./bar","Dir":"foo/bar"}]}
|
||||
@ -0,0 +1,3 @@
|
||||
output "hello" {
|
||||
value = "Hello from foo/bar"
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
module "bar" {
|
||||
source = "${path.module}/bar"
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
module "foo" {
|
||||
source = "./foo"
|
||||
}
|
||||
Loading…
Reference in new issue