Skip to content

Get topic list as JSON returns message instead of empty list #579

@b1zzu

Description

@b1zzu

Description

Version: rhoas version 0.22.1

Steps to reproduce

  1. Create a new Kafka instance and use it
  2. Run rhoas kafka topic list -o json

Expected vs actual behaviour

I expected it to return the standard JSON object with empty items: {"items": []}
but I got this message: Kafka instance "test-dbizzarr" has no topics. Run "rhoas kafka topic create <topic-name>" to create one

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions