Merge pull request #845 from pulumi/SetDryRun

Always set UpdateOptions.DryRun for previews.
This commit is contained in:
Pat Gavlin 2018-01-26 17:52:33 -08:00 committed by GitHub
commit bd4cd2fda9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,10 @@ func Preview(update Update, events chan<- Event, opts UpdateOptions) error {
}
defer info.Close()
// Always set opts.DryRun to `true` when processing previews: if we do not do this, the engine will assume that it
// should elide unknown input/output properties when interacting with the language and resource providers and we
// will produce unexpected results.
opts.DryRun = true
return previewLatest(info, deployOptions{
UpdateOptions: opts,