Reapply from master

This commit is contained in:
Adrien Ferrand 2021-11-23 22:12:32 +01:00
parent a56176e079
commit fe344f3c3b

View file

@ -56,8 +56,7 @@ def get_configurator():
os_like = util.get_systemd_os_like()
if os_like:
for os_name in os_like:
if os_name in OVERRIDE_CLASSES: # pylint: disable=consider-using-get
override_class = OVERRIDE_CLASSES[os_name]
override_class = OVERRIDE_CLASSES.get(os_name)
if not override_class:
# No override class found, return the generic configurator
override_class = configurator.ApacheConfigurator