mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
fix py3.8 compatibility
This commit is contained in:
parent
3b0895f663
commit
1481c14906
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue