mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Fix stdout of DeleteAllocationTokensCommand
It was saying it was deleting tokens it wasn't, because it was outputting the raw input list of tokens rather than the list that filtered out redeemed or domain-specific tokens. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227769266
This commit is contained in:
parent
577c6f6bc9
commit
a81d45fe5d
2 changed files with 7 additions and 1 deletions
|
@ -101,7 +101,11 @@ final class DeleteAllocationTokensCommand extends ConfirmingCommand
|
|||
System.out.printf(
|
||||
"%s tokens: %s\n",
|
||||
dryRun ? "Would delete" : "Deleted",
|
||||
JOINER.join(batch.stream().map(Key::getName).collect(toImmutableSet())));
|
||||
JOINER.join(
|
||||
tokensToDelete.stream()
|
||||
.map(AllocationToken::getToken)
|
||||
.sorted()
|
||||
.collect(toImmutableSet())));
|
||||
return tokensToDelete.size();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue