Skip to content

Commit

Permalink
[CLI-3057] Fix panic in confluent api-key use (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgagniere authored Feb 22, 2024
1 parent 8e2b98b commit 52265c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api-key/command_use.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c *command) useAPIKey(apiKey, clusterId string) error {
return errors.CatchCCloudV2Error(err, httpResp)
}
// check if the key is for the right cluster
if key.Spec.Resource.Id != clusterId {
if key.Spec.GetResource().Id != clusterId {
return errors.NewErrorWithSuggestions(
fmt.Sprintf(errors.InvalidApiKeyErrorMsg, apiKey, clusterId),
fmt.Sprintf(errors.InvalidApiKeySuggestions, clusterId),
Expand Down

0 comments on commit 52265c0

Please sign in to comment.