Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
JensWalter committed Sep 12, 2024
1 parent daff75e commit 944801f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/provider/containers_service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,3 +434,18 @@ func (d *containersServiceResource) Delete(ctx context.Context, req resource.Del
return
}
}

func (d *containersServiceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) {
if req.ProviderData == nil {
return
}
dtz, ok := req.ProviderData.(dtzProvider)
if !ok {
resp.Diagnostics.AddError(
"Unexpected Resource Configure Type",
fmt.Sprintf("Expected dtzProvider, got: %T. Please report this issue to the provider developers.", req.ProviderData),
)
return
}
d.api_key = dtz.ApiKey
}

0 comments on commit 944801f

Please sign in to comment.