gh-3447: fix careless mistake arisen in b12a3acb06 by attempt to implement new reload capacity (rewritten latter): causing error "'noduplicates' is not defined" by double jail configuration

pull/3315/head^2
sebres 2023-01-17 12:53:39 +01:00
parent a3a3fffa54
commit f93a538693
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ class Jails(Mapping):
"""
with self.__lock:
if name in self._jails:
if noduplicates:
raise DuplicateJailException(name)
raise DuplicateJailException(name)
else:
self._jails[name] = Jail(name, backend, db)