From 44ac2d14cf07c4ff077e7f80f3eb7d9a47dd68cc Mon Sep 17 00:00:00 2001 From: Ben McIlwain Date: Thu, 6 Feb 2020 12:21:34 -0500 Subject: [PATCH] Always attempt to save the claims list to Cloud SQL (#472) * Always attempt to save the claims list to Cloud SQL --- .../google/registry/tools/UploadClaimsListCommand.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/src/main/java/google/registry/tools/UploadClaimsListCommand.java b/core/src/main/java/google/registry/tools/UploadClaimsListCommand.java index d4af6cfcc..0fadada12 100644 --- a/core/src/main/java/google/registry/tools/UploadClaimsListCommand.java +++ b/core/src/main/java/google/registry/tools/UploadClaimsListCommand.java @@ -37,11 +37,6 @@ final class UploadClaimsListCommand extends ConfirmingCommand implements Command @Parameter(description = "Claims list filename") private List mainParameters = new ArrayList<>(); - @Parameter( - names = {"--also_cloud_sql"}, - description = "Persist claims list to Cloud SQL in addition to Datastore; defaults to false.") - boolean alsoCloudSql; - private String claimsListFilename; private ClaimsList claimsList; @@ -64,9 +59,7 @@ final class UploadClaimsListCommand extends ConfirmingCommand implements Command @Override public String execute() { ClaimsListShard.create(claimsList.getTmdbGenerationTime(), claimsList.getLabelsToKeys()).save(); - if (alsoCloudSql) { - ClaimsListDao.trySave(claimsList); - } + ClaimsListDao.trySave(claimsList); return String.format("Successfully uploaded claims list %s", claimsListFilename); } }