Skip to content

[improve][cli] Add current option in the Clusters list cmd#21139

Merged
Technoboy- merged 2 commits into
apache:masterfrom
Technoboy-:fix-20581
Sep 7, 2023
Merged

[improve][cli] Add current option in the Clusters list cmd#21139
Technoboy- merged 2 commits into
apache:masterfrom
Technoboy-:fix-20581

Conversation

@Technoboy-

Copy link
Copy Markdown
Contributor

Fixes #20581
PIP: #20614

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Sep 6, 2023
@Technoboy- Technoboy- self-assigned this Sep 6, 2023
@Technoboy- Technoboy- added this to the 3.2.0 milestone Sep 6, 2023
@mattisonchao

Copy link
Copy Markdown
Member

Could you please add test to cover this change? :)

@Technoboy-

Copy link
Copy Markdown
Contributor Author

Could you please add test to cover this change? :)

Added


void run() throws PulsarAdminException {
print(getAdmin().clusters().getClusters());
java.util.List<String> clusters = getAdmin().clusters().getClusters();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
java.util.List<String> clusters = getAdmin().clusters().getClusters();
List<String> clusters = getAdmin().clusters().getClusters();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, duplicated name with this Class. So need to add package prefix.

@Technoboy- Technoboy- merged commit d1f8f96 into apache:master Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improve][Admin API] Clusters list API return clusters with local and remote flag

5 participants