Fix issue
Do not fire a "resource outputs" display event for component resources
after their initial registration. Instead, defer this event until the
component's `RegisterResourceOutputs` call arrives.
@@ -194,9 +194,11 @@ func (acts *updateActions) OnResourceStepPost(ctx interface{},
acts.Ops[stepop]++
}
- // Also show outputs here, since there might be some from the initial registration.
+ // Also show outputs here for custom resources, since there might be some from the initial registration.
+ if step.Res().Custom {
acts.Opts.Events.resourceOutputsEvent(step, false /*planning*/, acts.Opts.Debug)
}
+ }
// Write out the current snapshot. Note that even if a failure has occurred, we should still have a
// safe checkpoint. Note that any error that occurs when writing the checkpoint trumps the error reported above.
