terraform: no outputs if we have no resources

pull/397/head
Mitchell Hashimoto 12 years ago
parent 61660b464b
commit ce61b5caec

@ -524,6 +524,10 @@ func (c *walkContext) Walk() error {
if mod == nil || len(mod.Resources) == 0 {
return nil
}
if len(mod.Resources) == 0 {
mod.Outputs = nil
return nil
}
outputs := make(map[string]string)
for _, o := range conf.Outputs {

Loading…
Cancel
Save