This commit is contained in:
Pat Gavlin 2021-11-16 12:51:39 -08:00
parent e8f3d448db
commit 87d9be60e1

View file

@ -146,7 +146,7 @@ func (ex *deploymentExecutor) Execute(callerCtx context.Context, opts Options, p
if opts.RefreshOnly {
return nil
}
} else if len(ex.deployment.prev.PendingOperations) != 0 && !preview {
} else if ex.deployment.prev != nil && len(ex.deployment.prev.PendingOperations) != 0 && !preview {
return result.FromError(PlanPendingOperationsError{ex.deployment.prev.PendingOperations})
}