Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/aws_batch_job_queue: Fixes type conversion error in migration function #39257

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/39257.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_batch_job_queue: Fixes error in schema migration function.
```
8 changes: 4 additions & 4 deletions internal/service/batch/job_queue_migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func upgradeJobQueueResourceStateV0toV1(ctx context.Context, request resource.Up
Priority types.Int64 `tfsdk:"priority"`
SchedulingPolicyARN types.String `tfsdk:"scheduling_policy_arn"`
State types.String `tfsdk:"state"`
Tags types.Map `tfsdk:"tags"` // nosemgrep:ci.semgrep.framework.model-tag-types
TagsAll types.Map `tfsdk:"tags_all"` // nosemgrep:ci.semgrep.framework.model-tag-types
Tags tftags.Map `tfsdk:"tags"`
TagsAll tftags.Map `tfsdk:"tags_all"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}

Expand All @@ -80,8 +80,8 @@ func upgradeJobQueueResourceStateV0toV1(ctx context.Context, request resource.Up
JobStateTimeLimitActions: fwtypes.NewListNestedObjectValueOfNull[jobStateTimeLimitActionModel](ctx),
Priority: jobQueueDataV0.Priority,
State: jobQueueDataV0.State,
Tags: tftags.NewMapFromMapValue(jobQueueDataV0.Tags),
TagsAll: tftags.NewMapFromMapValue(jobQueueDataV0.TagsAll),
Tags: jobQueueDataV0.Tags,
TagsAll: jobQueueDataV0.TagsAll,
Timeouts: jobQueueDataV0.Timeouts,
}

Expand Down
Loading