mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:14:54 +02:00
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:
committed by
Joona Hoikkala
parent
b0d960f102
commit
de88e7d777
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user