mirror of
https://github.com/google/nomulus
synced 2026-08-21 22:56:19 +00:00
Fix resource mismatch problem in FixDomainNameserverKeysCommand
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=147476075
This commit is contained in:
@@ -115,7 +115,10 @@ public class FixDomainNameserverKeysCommand extends ConfirmingCommand implements
|
|||||||
for (Entry<DomainResource, DomainResource> entry : domainUpdates.entrySet()) {
|
for (Entry<DomainResource, DomainResource> entry : domainUpdates.entrySet()) {
|
||||||
DomainResource existingDomain = entry.getKey();
|
DomainResource existingDomain = entry.getKey();
|
||||||
checkState(
|
checkState(
|
||||||
Objects.equals(existingDomain, ofy().load().entity(existingDomain).now()),
|
Objects.equals(
|
||||||
|
existingDomain,
|
||||||
|
ofy().load().entity(existingDomain).now()
|
||||||
|
.cloneProjectedAtTime(ofy().getTransactionTime())),
|
||||||
"Domain %s changed since init() was called.",
|
"Domain %s changed since init() was called.",
|
||||||
existingDomain.getFullyQualifiedDomainName());
|
existingDomain.getFullyQualifiedDomainName());
|
||||||
HistoryEntry historyEntryWithModificationTime =
|
HistoryEntry historyEntryWithModificationTime =
|
||||||
|
|||||||
Reference in New Issue
Block a user