|
|
|
|
@ -345,13 +345,10 @@ func (n *NodePlannableResourceInstance) replaceTriggered(ctx EvalContext, repDat
|
|
|
|
|
if replace {
|
|
|
|
|
// FIXME: forceReplace accomplishes the same goal, however we may
|
|
|
|
|
// want to communicate more information about which resource
|
|
|
|
|
// triggered the replacement in the plan.
|
|
|
|
|
// Rather than further complicating the plan method with more
|
|
|
|
|
// options, we can refactor both of these featured later.
|
|
|
|
|
// options, we can refactor both of these features later.
|
|
|
|
|
n.forceReplace = append(n.forceReplace, n.Addr)
|
|
|
|
|
//
|
|
|
|
|
// triggered the replacement in the plan.
|
|
|
|
|
// EvalauteReplaceTriggeredBy returns a reference to store
|
|
|
|
|
// somewhere for this purpose too.
|
|
|
|
|
log.Printf("[DEBUG] ReplaceTriggeredBy forcing replacement of %s due to change in %s", n.Addr, ref.DisplayString())
|
|
|
|
|
|
|
|
|
|
n.replaceTriggeredBy = append(n.replaceTriggeredBy, ref)
|
|
|
|
|
|