Increase default allocation token length to 16

16 is consistent with how we've generated codes for anchor tenants in the past.

Also gets rid of a space in the output so that it's a fully valid CSV.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=208106631
This commit is contained in:
mcilwain 2018-08-09 14:00:23 -07:00 committed by jianglai
parent 32ed197103
commit e5b407cab4
2 changed files with 13 additions and 12 deletions

View file

@ -71,9 +71,9 @@ public class GenerateAllocationTokensCommand implements RemoteApiCommand {
@Parameter(
names = {"-l", "--length"},
description = "The length of each token, exclusive of the prefix (if specified); defaults to 12"
description = "The length of each token, exclusive of the prefix (if specified); defaults to 16"
)
private int tokenLength = 12;
private int tokenLength = 16;
@Parameter(
names = {"--dry_run"},
@ -84,7 +84,7 @@ public class GenerateAllocationTokensCommand implements RemoteApiCommand {
@Inject Retrier retrier;
private static final int BATCH_SIZE = 20;
private static final Joiner SKIP_NULLS = Joiner.on(", ").skipNulls();
private static final Joiner SKIP_NULLS = Joiner.on(',').skipNulls();
@Override
public void run() throws IOException {