mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-20 22:01:25 -04:00
These were previously using "applying:" as the common prefix, but I found that confusing in practice because only the "ManagedApply" operation is _actually_ applying changes. Instead then we'll identify these trace logs as belonging to the apply phase as a whole, to try to be a little clearer about what's going on. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
29 lines
778 B
Go
29 lines
778 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package applying
|
|
|
|
import (
|
|
"context"
|
|
"log"
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
"github.com/opentofu/opentofu/internal/engine/internal/exec"
|
|
"github.com/opentofu/opentofu/internal/lang/eval"
|
|
"github.com/opentofu/opentofu/internal/tfdiags"
|
|
)
|
|
|
|
// DataRead implements [exec.Operations].
|
|
func (ops *execOperations) DataRead(
|
|
ctx context.Context,
|
|
desired *eval.DesiredResourceInstance,
|
|
plannedVal cty.Value,
|
|
providerClient *exec.ProviderClient,
|
|
) (*exec.ResourceInstanceObject, tfdiags.Diagnostics) {
|
|
log.Printf("[TRACE] apply phase: DataRead %s using %s", desired.Addr, providerClient.InstanceAddr)
|
|
panic("unimplemented")
|
|
}
|