mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 01:17:14 +02:00
Fix resource mismatch problem in FixDomainNameserverKeysCommand
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=147476075
This commit is contained in:
parent
07625ce81b
commit
e0cb4e465c
1 changed files with 4 additions and 1 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue