From cbbe9cb5880e584d8d4c7f5f0aba3fbd68d3eb41 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Feb 2015 22:53:22 -0800 Subject: [PATCH] terraform: state prune prunes computed variables --- terraform/state.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/state.go b/terraform/state.go index 8bab90c95..d14ae043b 100644 --- a/terraform/state.go +++ b/terraform/state.go @@ -377,6 +377,12 @@ func (m *ModuleState) prune() { delete(m.Resources, k) } } + + for k, v := range m.Outputs { + if v == config.UnknownVariableValue { + delete(m.Outputs, k) + } + } } func (m *ModuleState) sort() {