mirror of
https://github.com/google/nomulus
synced 2026-01-09 07:33:42 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user