Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 19, 2024
1 parent c48fe48 commit 6290691
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ func (d *ServingEndpointsDataSource) Read(ctx context.Context, req datasource.Re
}
tfEndpoints := []attr.Value{}
for _, endpoint := range endpointsInfoSdk {
var endpointsInfo serving_tf.ServingEndpoint
var endpointsInfo serving_tf.ServingEndpoint_SdkV2
resp.Diagnostics.Append(converters.GoSdkToTfSdkStruct(ctx, endpoint, &endpointsInfo)...)
if resp.Diagnostics.HasError() {
return
}
tfEndpoints = append(tfEndpoints, endpointsInfo.ToObjectValue(ctx))
}
endpoints.Endpoints = types.ListValueMust(serving_tf.ServingEndpoint{}.Type(ctx), tfEndpoints)
endpoints.Endpoints = types.ListValueMust(serving_tf.ServingEndpoint_SdkV2{}.Type(ctx), tfEndpoints)
resp.Diagnostics.Append(resp.State.Set(ctx, endpoints)...)
}

0 comments on commit 6290691

Please sign in to comment.