"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/terraform/node_provider.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_provider.go  (terraform-1.0.8):node_provider.go  (terraform-1.0.9)
skipping to change at line 40 skipping to change at line 40
provider, _, err := getProvider(ctx, n.Addr) provider, _, err := getProvider(ctx, n.Addr)
diags = diags.Append(err) diags = diags.Append(err)
if diags.HasErrors() { if diags.HasErrors() {
return diags return diags
} }
switch op { switch op {
case walkValidate: case walkValidate:
return diags.Append(n.ValidateProvider(ctx, provider)) return diags.Append(n.ValidateProvider(ctx, provider))
case walkPlan, walkApply, walkDestroy: case walkPlan, walkApply, walkDestroy:
// walkPlanDestroy is purposely skipped here, since the config is
not
// evaluated, and the provider is not needed to create delete act
ions
// for all instances.
return diags.Append(n.ConfigureProvider(ctx, provider, false)) return diags.Append(n.ConfigureProvider(ctx, provider, false))
case walkImport: case walkImport:
return diags.Append(n.ConfigureProvider(ctx, provider, true)) return diags.Append(n.ConfigureProvider(ctx, provider, true))
} }
return diags return diags
} }
func (n *NodeApplyableProvider) ValidateProvider(ctx EvalContext, provider provi ders.Interface) (diags tfdiags.Diagnostics) { func (n *NodeApplyableProvider) ValidateProvider(ctx EvalContext, provider provi ders.Interface) (diags tfdiags.Diagnostics) {
configBody := buildProviderConfig(ctx, n.Addr, n.ProviderConfig()) configBody := buildProviderConfig(ctx, n.Addr, n.ProviderConfig())
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

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