Skip to content

Commit

Permalink
rpk: change error check for empty orgs error
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vasquez committed May 22, 2024
1 parent 4382e41 commit 955ac66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/profile/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func CreateFlow(
var err error
o, err = createCloudProfile(ctx, yAuthVir, cfg, fromCloud)
if err != nil {
if err == ErrNoCloudClusters {
if errors.Is(err, ErrNoCloudClusters) {
fmt.Println("Your cloud account has no clusters available to select, avoiding creating a cloud profile.")
return nil
}
Expand Down

0 comments on commit 955ac66

Please sign in to comment.