Use old.All() to be consistent with Update

This changes the inputs to Check/Diff to match what we also
pass to the Update function later on (old.All() vs. old.Outputs).
This commit is contained in:
joeduffy 2017-12-15 07:37:15 -08:00
parent 675fe38269
commit 668e56f2c7
2 changed files with 2 additions and 2 deletions

View file

@ -284,7 +284,7 @@ func (iter *PlanIterator) makeRegisterResouceSteps(e RegisterResourceEvent) ([]S
var oldouts resource.PropertyMap
if hasold {
olds = old.Inputs
oldouts = old.Outputs
oldouts = old.All()
}
// Fetch the provider for this resource type, assuming it isn't just a logical one.

View file

@ -39,7 +39,7 @@ func NewState(t tokens.Type, urn URN, custom bool, del bool, id ID,
}
}
// All returns all resource state, including the inputs, defaults, and outputs, overlaid in that order.
// All returns all resource state, including the inputs and outputs, overlaid in that order.
func (s *State) All() PropertyMap {
return s.Inputs.Merge(s.Outputs)
}