mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
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:
parent
a1537a51a9
commit
4a92d97a70
3 changed files with 18 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue