Fix add/remove calculations when updating multiple domains

Lists used as accumulators were being updated individually for each domain
without starting over from a fresh list each time, so the number of changes
would grow for each additional domain and potentially be wrong if the previous
domains were set up differently.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=204526006
This commit is contained in:
mcilwain 2018-07-13 14:09:23 -07:00 committed by jianglai
parent 278ec2b289
commit 8942c4fad1
3 changed files with 99 additions and 26 deletions

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>%DOMAIN%</domain:name>
<domain:add>
<domain:ns>
<domain:hostObj>ns1.foo.fake</domain:hostObj>
<domain:hostObj>ns2.foo.fake</domain:hostObj>
</domain:ns>
</domain:add>
<domain:rem>
<domain:ns>
<domain:hostObj>%REMOVEHOST%</domain:hostObj>
</domain:ns>
</domain:rem>
</domain:update>
</update>
<clTRID>RegistryTool</clTRID>
</command>
</epp>