1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix py3.8 compatibility

This commit is contained in:
checktheroads
2020-07-04 15:24:15 -07:00
parent 3b0895f663
commit 1481c14906

View File

@@ -296,7 +296,7 @@ def make_systemd(user):
{str} -- Generated systemd template
"""
import platform
import distro
template = """
[Unit]
@@ -313,7 +313,7 @@ ExecStart={hyperglass_path} start
WantedBy=multi-user.target
"""
known_rhel = ("rhel", "centos")
distro = platform.linux_distribution()
distro = distro.linux_distribution(full_distribution_name=False)
if distro[0] in known_rhel:
redis_name = "redis"
else: