Skip to content

Commit

Permalink
bulk: fix broken command activities
Browse files Browse the repository at this point in the history
Motivation:
Commit 00ba8c attempted to fix the bulk admin command `activities`, but broke it in a different way. The actual data contains three columns, but four placeholders were specified.

Modification:
Remove the fourth placeholder and fourth column name.

Result:
The admin command `activities` in the bulk service works again.

Target: master
Request: 10.0, 10.1
Fixes: #7661
Requires-notes: yes
Requires-book: no
Acked-by: Tigran Mkrtchyan
  • Loading branch information
lemora authored and mksahakyan committed Sep 20, 2024
1 parent 90199cf commit 082d2d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public final class BulkServiceCommands implements CellCommandListener {
/**
* name | class | type | permits
*/
private static final String FORMAT_ACTIVITY = "%-20s | %100s | %7s | %10s";
private static final String FORMAT_ACTIVITY = "%-20s | %100s | %7s";

/**
* name | required | description
Expand Down Expand Up @@ -552,7 +552,7 @@ public String call() throws Exception {
return "There are no mapped activities!";
}

return String.format(FORMAT_ACTIVITY, "NAME", "CLASS", "TYPE", "RATE")
return String.format(FORMAT_ACTIVITY, "NAME", "CLASS", "TYPE")
+ "\n" + activities;
}
}
Expand Down

0 comments on commit 082d2d5

Please sign in to comment.