Implements specific overrides for Fedora 29+ in Apache plugin (#6988)

* Start to plug specific logic for Fedora >= 29

* Invert the logic

* Implement specifics for Fedora 29

* Fix config

* Add documentation

* Fix parser, fix tests

* Fix import

* Fix lint

* Use LooseVersion to be fail safe on versions comparison

* Remove conditional restart on fedora override

* Use parent logic

* Update certbot-apache/certbot_apache/tests/fedora_test.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Simplify restart test

* Update certbot-apache/certbot_apache/override_fedora.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Correct test assertion

* Fix pylint errors

* Revert to a direct call to systemctl
This commit is contained in:
Adrien Ferrand
2019-05-01 03:21:10 +03:00
committed by Joona Hoikkala
parent b0d960f102
commit de88e7d777
6 changed files with 321 additions and 9 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ def get_os_info(filepath="/etc/os-release"):
# Systemd os-release parsing might be viable
os_name, os_version = get_systemd_os_info(filepath=filepath)
if os_name:
return (os_name, os_version)
return os_name, os_version
# Fallback to platform module
return get_python_os_info()