gerrit plugin ls: Show status for enabled plugins as 'ENABLED'

When listing the plugins with the 'plugin ls' SSH command the status
for enabled plugins is empty while for disabled plugins it shows
'DISABLED'.

Show the status for enabled plugins as 'ENABLED' so that users are not
confused by the missing status.

Change-Id: Iebae72a1c5287c895ab7160f050992b989cd1d97
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin 2012-09-05 07:41:42 +02:00
parent 1bf67f4728
commit 61e9ac3e16

View File

@ -94,7 +94,7 @@ public class ListPlugins {
} else { } else {
stdout.format("%-30s %-10s %-8s\n", p.getName(), stdout.format("%-30s %-10s %-8s\n", p.getName(),
Strings.nullToEmpty(info.version), Strings.nullToEmpty(info.version),
p.isDisabled() ? "DISABLED" : ""); p.isDisabled() ? "DISABLED" : "ENABLED");
} }
} }