YARN-9162. Fix TestRMAdminCLI#testHelp. Contributed by Ayush Saxena.
This commit is contained in:
parent
944cf87223
commit
5db7c49062
@ -187,7 +187,8 @@ protected void setOut(PrintStream out) {
|
||||
private static void appendHAUsage(final StringBuilder usageBuilder) {
|
||||
for (Map.Entry<String,UsageInfo> cmdEntry : USAGE.entrySet()) {
|
||||
if (cmdEntry.getKey().equals("-help")
|
||||
|| cmdEntry.getKey().equals("-failover")) {
|
||||
|| cmdEntry.getKey().equals("-failover")
|
||||
|| cmdEntry.getKey().equals("-transitionToObserver")) {
|
||||
continue;
|
||||
}
|
||||
UsageInfo usageInfo = cmdEntry.getValue();
|
||||
@ -302,7 +303,8 @@ private static void printHelp(String cmd, boolean isHAEnabled) {
|
||||
}
|
||||
if (isHAEnabled) {
|
||||
for (String cmdKey : USAGE.keySet()) {
|
||||
if (!cmdKey.equals("-help") && !cmdKey.equals("-failover")) {
|
||||
if (!cmdKey.equals("-help") && !cmdKey.equals("-failover")
|
||||
&& !cmdKey.equals("-transitionToObserver")) {
|
||||
buildHelpMsg(cmdKey, helpBuilder);
|
||||
helpBuilder.append("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user