]> git.llucax.com Git - software/pymin.git/blobdiff - services/dns/__init__.py
Merge /home/luca/pymin
[software/pymin.git] / services / dns / __init__.py
index 862a5b345b915d949920e0766633ec8127581cc8..6bc45e82ded0cead0ed355c54a2216890384fa38 100644 (file)
@@ -390,7 +390,10 @@ class ZoneHandler:
     @handler
     def add(self, name):
         if name in self.zones:
-            raise ZoneAlreadyExistsError(name)
+            if self.zones[name].dele = True:
+                self.zones[name].dele = False
+            else:
+                raise ZoneAlreadyExistsError(name)
         self.zones[name] = Zone(name)
         self.zones[name].mod = True
         self.zones[name].new = True