]> git.llucax.com Git - software/pymin.git/commitdiff
Se corrige bug que impide crear, borrar yc crear una zona.
authorNicolas Emiliani <nemiliani@integratech.com.ar>
Tue, 2 Oct 2007 15:09:58 +0000 (12:09 -0300)
committerNicolas Emiliani <nemiliani@integratech.com.ar>
Tue, 2 Oct 2007 15:09:58 +0000 (12:09 -0300)
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