Migrate plural DNS writers field to being the canonical one

After this point all data is migrated to use the new canonical
plural version, and subsequent code changes can be made that use
multiple writers.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=161673486
This commit is contained in:
mcilwain 2017-07-12 09:19:52 -07:00 committed by Ben McIlwain
parent 24587491c9
commit 37f33e5e7a
6 changed files with 15 additions and 13 deletions

View file

@ -393,7 +393,7 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
dnsWriterNames.contains(dnsWriter.get()),
"The DNS writer '%s' doesn't exist",
dnsWriter.get());
builder.setDnsWriter(dnsWriter.get());
builder.setDnsWriters(ImmutableSet.of(dnsWriter.get()));
}
if (lrpPeriod != null) {