Filter domains w/disallowed statuses from zone file generation MR

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=147839827
This commit is contained in:
ctingue 2017-02-17 08:19:47 -08:00 committed by Ben McIlwain
parent a1537a51a9
commit 4a92d97a70
3 changed files with 18 additions and 6 deletions

View file

@ -195,7 +195,8 @@ public class GenerateZoneFilesAction implements Runnable, JsonActionRunner.JsonA
// Domains never change their tld, so we can check if it's from the wrong tld right away.
if (tlds.contains(domain.getTld())) {
domain = loadAtPointInTime(domain, exportTime).now();
if (domain != null) { // A null means the domain was deleted (or not created) at this time.
// A null means the domain was deleted (or not created) at this time.
if (domain != null && domain.shouldPublishToDns()) {
String stanza = domainStanza(domain, exportTime);
if (!stanza.isEmpty()) {
emit(domain.getTld(), stanza);