mirror of
https://github.com/google/nomulus
synced 2026-08-22 15:16:20 +00:00
Add flag to delete domain immediately in nomulus too
We've already had the need to do this on a few occasions, so it's best to make it easy rather than requiring hand-generated XML all the time. Also normalizes the boolean --registrar_request parameter to not have arity=1. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=198093829
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
{template .deletedomain stricthtml="false"}
|
||||
{@param domainName: string}
|
||||
{@param immediately: bool}
|
||||
{@param reason: string}
|
||||
{@param requestedByRegistrar: any}
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
@@ -35,6 +36,12 @@
|
||||
<metadata:reason>Deleted by registry administrator: {$reason}</metadata:reason>
|
||||
<metadata:requestedByRegistrar>{$requestedByRegistrar}</metadata:requestedByRegistrar>
|
||||
</metadata:metadata>
|
||||
{if $immediately}
|
||||
<superuser:domainDelete xmlns:superuser="urn:google:params:xml:ns:superuser-1.0">
|
||||
<superuser:redemptionGracePeriodDays>0</superuser:redemptionGracePeriodDays>
|
||||
<superuser:pendingDeleteDays>0</superuser:pendingDeleteDays>
|
||||
</superuser:domainDelete>
|
||||
{/if}
|
||||
</extension>
|
||||
<clTRID>RegistryTool</clTRID>
|
||||
</command>
|
||||
|
||||
Reference in New Issue
Block a user