"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/terraform/node_resource_destroy_deposed.go" between
terraform-1.0.8.tar.gz and terraform-1.0.9.tar.gz

About: Terraform is a tool for building, changing, and versioning a datacenter infrastructure (written in Go).

node_resource_destroy_deposed.go  (terraform-1.0.8):node_resource_destroy_deposed.go  (terraform-1.0.9)
skipping to change at line 98 skipping to change at line 98
if diags.HasErrors() { if diags.HasErrors() {
return diags return diags
} }
// Also the refreshState, because that should still reflect schema upgrad es // Also the refreshState, because that should still reflect schema upgrad es
// even if not refreshing. // even if not refreshing.
diags = diags.Append(n.writeResourceInstanceStateDeposed(ctx, n.DeposedKe y, state, refreshState)) diags = diags.Append(n.writeResourceInstanceStateDeposed(ctx, n.DeposedKe y, state, refreshState))
if diags.HasErrors() { if diags.HasErrors() {
return diags return diags
} }
if !n.skipRefresh { // We don't refresh during the planDestroy walk, since that is only addin
g
// the destroy changes to the plan and the provider will not be configure
d
// at this point. The other nodes use separate types for plan and destroy
,
// while deposed instances are always a destroy operation, so the logic
// here is a bit overloaded.
if !n.skipRefresh && op != walkPlanDestroy {
// Refresh this object even though it is going to be destroyed, i n // Refresh this object even though it is going to be destroyed, i n
// case it's already been deleted outside of Terraform. If this i s a // case it's already been deleted outside of Terraform. If this i s a
// normal plan, providers expect a Read request to remove missing // normal plan, providers expect a Read request to remove missing
// resources from the plan before apply, and may not handle a mis sing // resources from the plan before apply, and may not handle a mis sing
// resource during Delete correctly. If this is a simple refresh, // resource during Delete correctly. If this is a simple refresh,
// Terraform is expected to remove the missing resource from the state // Terraform is expected to remove the missing resource from the state
// entirely // entirely
refreshedState, refreshDiags := n.refresh(ctx, n.DeposedKey, stat e) refreshedState, refreshDiags := n.refresh(ctx, n.DeposedKey, stat e)
diags = diags.Append(refreshDiags) diags = diags.Append(refreshDiags)
if diags.HasErrors() { if diags.HasErrors() {
 End of changes. 1 change blocks. 
1 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)