ls-groups: Print out "n/a" if group name is not set
Change-Id: I2e126cd00809db51f81baf8d594050f9a8b3d7d1 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:

committed by
Shawn Pearce

parent
0adf6f7f43
commit
3e8754eab2
@@ -79,7 +79,7 @@ public class ListGroupsCommand extends BaseCommand {
|
||||
void display(final PrintWriter out) throws NoSuchGroupException {
|
||||
final ColumnFormatter formatter = new ColumnFormatter(out, '\t');
|
||||
for (final GroupInfo info : get()) {
|
||||
formatter.addColumn(info.name);
|
||||
formatter.addColumn(Objects.firstNonNull(info.name, "n/a"));
|
||||
if (verboseOutput) {
|
||||
AccountGroup o = info.ownerId != null
|
||||
? groupCache.get(new AccountGroup.UUID(Url.decode(info.ownerId)))
|
||||
|
Reference in New Issue
Block a user