terraform: state prune prunes computed variables

This commit is contained in:
Mitchell Hashimoto 2015-02-11 22:53:22 -08:00
parent 8365d39d26
commit cbbe9cb588
1 changed files with 6 additions and 0 deletions

View File

@ -377,6 +377,12 @@ func (m *ModuleState) prune() {
delete(m.Resources, k) delete(m.Resources, k)
} }
} }
for k, v := range m.Outputs {
if v == config.UnknownVariableValue {
delete(m.Outputs, k)
}
}
} }
func (m *ModuleState) sort() { func (m *ModuleState) sort() {