Skip to content

Commit 0151a26

Browse files
committed
State constants
1 parent f281fd7 commit 0151a26

File tree

1 file changed

+1
-1
lines changed
  • internal/elasticsearch/ml/datafeed_state

1 file changed

+1
-1
lines changed

internal/elasticsearch/ml/datafeed_state/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (r *mlDatafeedStateResource) update(ctx context.Context, plan tfsdk.Plan, s
7474
}
7575

7676
// Perform state transition if needed
77-
inDesiredState, fwDiags := r.performStateTransition(ctx, client, data, datafeedStats.State)
77+
inDesiredState, fwDiags := r.performStateTransition(ctx, client, data, datafeed.State(datafeedStats.State))
7878
diags.Append(fwDiags...)
7979
if diags.HasError() {
8080
return diags

0 commit comments

Comments
 (0)