Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Update resource_kafka_cluster.go (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
linouk23 committed Nov 3, 2021
1 parent 396aaee commit 9939b31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resource_kafka_cluster.go
Expand Up @@ -452,13 +452,13 @@ func executeKafkaRead(ctx context.Context, c *Client, environmentId string, clus
}

func kafkaRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
environmentId, err := validEnvironmentId(d)
clusterId := d.Id()
log.Printf("[INFO] Kafka read for %s", clusterId)
environmentId, err := validEnvironmentId(d)
if err != nil {
log.Printf("[ERROR] %s", err)
return diag.FromErr(err)
}
log.Printf("[INFO] Kafka import for %s", clusterId)

_, err = readAndSetResourceConfigurationArguments(ctx, d, meta, environmentId, clusterId)

Expand Down

0 comments on commit 9939b31

Please sign in to comment.