Commit 2957648d authored by Marco Marinello's avatar Marco Marinello

Only if external host is defined

parent c92a8375
......@@ -74,5 +74,5 @@ class Command(BaseCommand):
self.is_valid_fqdn_or_ip(school.internal_host) and \
school.active:
print(self.gen_vhost(school))
else:
elif school.external_host:
print(self.gen_disabled_vhost(school))
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 to comment