mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
add unknown val error for MoveResourceState
This commit is contained in:
parent
105b2044d5
commit
d8a335f520
1 changed files with 9 additions and 0 deletions
|
|
@ -161,6 +161,15 @@ func (move *crossTypeMove) applyCrossTypeMove(stmt *MoveStatement, source, targe
|
|||
})
|
||||
return diags
|
||||
}
|
||||
if !resp.TargetState.IsWhollyKnown() {
|
||||
diags = diags.Append(&hcl.Diagnostic{
|
||||
Severity: hcl.DiagError,
|
||||
Summary: "Provider returned invalid value",
|
||||
Detail: fmt.Sprintf("The provider %s returned an invalid value during an across type move operation: The returned state contains unknown values. This is a bug in the relevant provider; Please report it.",
|
||||
move.targetProviderAddr),
|
||||
Subject: stmt.DeclRange.ToHCL().Ptr(),
|
||||
})
|
||||
}
|
||||
|
||||
// Finally, we can update the source value with the new value.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue