Skip to content

Commit

Permalink
feat: fix error handling in kafkaClusterStatus function
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Aug 7, 2024
1 parent 17aa14f commit 2b0231e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/util_wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func kafkaClusterStatus(ctx context.Context, c *client.Client, clusterId string,
return nil, stateUnknown, err
}
if cluster == nil {
return nil, stateUnknown, fmt.Errorf("Kafka Cluster %q not found", cluster)
return nil, stateUnknown, fmt.Errorf("Kafka Cluster %q not found", cluster.InstanceID)
}

tflog.Debug(ctx, fmt.Sprintf("Waiting for Kafka Cluster %q status to become %q: current status is %q", clusterId, targetState, cluster.Status))
Expand Down

0 comments on commit 2b0231e

Please sign in to comment.