YARN-9162. Fix TestRMAdminCLI#testHelp. Contributed by Ayush Saxena.
(cherry picked from commit5db7c49062
) (cherry picked from commita453f38015
)
This commit is contained in:
parent
e3c01e174c
commit
3c9d2f5317
|
@ -190,7 +190,8 @@ public class RMAdminCLI extends HAAdmin {
|
|||
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();
|
||||
|
@ -305,7 +306,8 @@ public class RMAdminCLI extends HAAdmin {
|
|||
}
|
||||
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