summaryrefslogtreecommitdiff
path: root/designate/backend/impl_bind9.py
diff options
context:
space:
mode:
Diffstat (limited to 'designate/backend/impl_bind9.py')
-rw-r--r--designate/backend/impl_bind9.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/designate/backend/impl_bind9.py b/designate/backend/impl_bind9.py
index 1d484d72..4421875f 100644
--- a/designate/backend/impl_bind9.py
+++ b/designate/backend/impl_bind9.py
@@ -126,7 +126,7 @@ class Bind9Backend(base.Backend):
return True
- def delete_zone(self, context, zone):
+ def delete_zone(self, context, zone, zone_params=None):
"""Delete a new Zone by executin rndc
Do not raise exceptions if the zone does not exist.
"""
@@ -138,7 +138,8 @@ class Bind9Backend(base.Backend):
'delzone',
'%s %s' % (zone['name'].rstrip('.'), view),
]
- if self._clean_zonefile:
+ if (self._clean_zonefile or (zone_params and
+ zone_params.get('hard_delete'))):
rndc_op.insert(1, '-clean')
try: