Skip to content

Commit

Permalink
Remove ListRoles options support from DSE
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Nov 12, 2024
1 parent f58e146 commit 8775b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,7 @@ public List<Map<String, String>> listRoles() {
roleOutput.put("name", role.getRoleName());
roleOutput.put("super", String.valueOf(roleManager.isSuper(role)));
roleOutput.put("login", String.valueOf(roleManager.canLogin(role)));

Map<String, String> customOptions = data.options;
String optionsAsString =
customOptions.keySet().stream()
.map(key -> key + ": " + customOptions.get(key))
.collect(Collectors.joining(", ", "{", "}"));

roleOutput.put("options", "{}");
roleOutput.put("datacenters", "");
roles.add(roleOutput);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,7 @@ public List<Map<String, String>> listRoles() {
roleOutput.put("super", String.valueOf(roleManager.isSuper(role)));
roleOutput.put("login", String.valueOf(roleManager.canLogin(role)));

Map<String, String> customOptions = data.options;
String optionsAsString =
customOptions.keySet().stream()
.map(key -> key + ": " + customOptions.get(key))
.collect(Collectors.joining(", ", "{", "}"));

roleOutput.put("options", "{}");
roleOutput.put("datacenters", "");
roles.add(roleOutput);
}
Expand Down

0 comments on commit 8775b6c

Please sign in to comment.