Commit d839004b by Őry Máté

firewall: fix #28 fix

parent 1471faf0
......@@ -122,7 +122,7 @@ class Alias(models.Model):
def clean(self):
# FIXME later: critical race condition
for h in Host.objects:
for h in Host.objects.all():
if h.get_fqdn() == self.alias:
raise ValidationError(_("Host name already used."))
......@@ -190,7 +190,7 @@ class Host(models.Model):
def clean(self):
# FIXME later: critical race condition
for a in Alias.objects:
for a in Alias.objects.all():
if self.get_fqdn() == a.alias:
raise ValidationError(_("Host name already used as alias."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment