Skip to content

Commit 4153ae4

Browse files
migaraclaude
andcommitted
fix(terraform): add ImportStateCustom to panos_ip_tag resource
PR #727 changed codegen so every custom resource generates an ImportState body calling o.ImportStateCustom, but panos_ip_tag (#728) was authored before that change and lacked the method, breaking the build. Add ImportStateCustom returning an error diagnostic, matching other custom resources that do not support import. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 17069ca commit 4153ae4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

assets/terraform/internal/provider/ip_tag_crud.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ func registeredTagsForIp(ctx context.Context, client *pango.Client, vsys, target
333333
return all[ip], nil
334334
}
335335

336+
func (o *IpTagResource) ImportStateCustom(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
337+
resp.Diagnostics.AddError("Import not supported", "The panos_ip_tag resource does not support terraform import.")
338+
}
339+
336340
func (o *IpTagResource) CreateCustom(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) {
337341
var data IpTagResourceModel
338342
resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...)

0 commit comments

Comments
 (0)