From: Nicolas Emiliani Date: Tue, 2 Oct 2007 15:09:58 +0000 (-0300) Subject: Se corrige bug que impide crear, borrar yc crear una zona. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/53b9e05e644d24d5cf7e80d0f71ee0c42aacab65?hp=-c Se corrige bug que impide crear, borrar yc crear una zona. --- 53b9e05e644d24d5cf7e80d0f71ee0c42aacab65 diff --git a/services/dns/__init__.py b/services/dns/__init__.py index 862a5b3..6bc45e8 100644 --- a/services/dns/__init__.py +++ b/services/dns/__init__.py @@ -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