Skip to content

Commit 8e3f4c1

Browse files
committed
feat(cockpit): refacto update source
1 parent 7b1c59a commit 8e3f4c1

File tree

4 files changed

+255
-255
lines changed

4 files changed

+255
-255
lines changed

internal/services/cockpit/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func ResourceCockpitSourceUpdate(ctx context.Context, d *schema.ResourceData, me
168168
updateRequest.RetentionDays = &retentionDays
169169
}
170170

171-
if d.HasChange("retention_days") || d.HasChange("name") {
171+
if d.HasChanges("retention_days", "name") {
172172
_, err = api.UpdateDataSource(updateRequest, scw.WithContext(ctx))
173173
if err != nil {
174174
return diag.FromErr(err)

0 commit comments

Comments
 (0)