mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 07:13:34 +02: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:
parent
32ed197103
commit
e5b407cab4
2 changed files with 13 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue