Skip to content

Commit

Permalink
HDDS-11268. [CLI] Improve CLI Display OM/SCM Roles.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Aug 1, 2024
1 parent c364e77 commit 5a1bb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Void call() throws Exception {
ozoneManagerClient = parent.createOmClient(omServiceId);
if (json) {
printOmServerRolesAsJson(ozoneManagerClient.getServiceList());
} else if(table) {
} else if (table) {
FormattingCLIUtils formattingCLIUtils = new FormattingCLIUtils(OM_ROLES_TITLE)
.addHeaders(OM_ROLES_HEADER);
List<ServiceInfo> serviceList = ozoneManagerClient.getServiceList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected void execute(ScmClient scmClient) throws IOException {
Map<String, Map<String, String>> scmRoles = parseScmRoles(ratisRoles);
System.out.print(
JsonUtils.toJsonStringWithDefaultPrettyPrinter(scmRoles));
} else if(table) {
} else if (table) {
FormattingCLIUtils formattingCLIUtils = new FormattingCLIUtils(SCM_ROLES_TITLE)
.addHeaders(SCM_ROLES_HEADER);
for (String role : ratisRoles) {
Expand Down

0 comments on commit 5a1bb1d

Please sign in to comment.