Fix for case sensitivity when looking for vhosts (#4193)

This commit is contained in:
Joona Hoikkala 2017-02-24 06:28:36 +02:00 committed by Brad Warren
parent 52ce335ff0
commit 28cbd6e7d3

View file

@ -580,7 +580,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
("/files%s//*[label()=~regexp('%s')]" %
(vhost_path, parser.case_i("VirtualHost"))))
paths = [path for path in paths if
os.path.basename(path) == "VirtualHost"]
os.path.basename(path.lower()) == "virtualhost"]
for path in paths:
new_vhost = self._create_vhost(path)
if not new_vhost: