Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d8f92fd2d |
No files matched your search
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tesm"
|
name = "tesm"
|
||||||
version = "2.8.40"
|
version = "2.8.41"
|
||||||
description = "TESM -- Verwaltung und Ueberwachung von PoE-Endgeraeten und Aruba-Switchen"
|
description = "TESM -- Verwaltung und Ueberwachung von PoE-Endgeraeten und Aruba-Switchen"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
@@ -801,7 +801,9 @@ def service_state(sysops: SysOps) -> dict[str, str]:
|
|||||||
fertig = subprocess.run(
|
fertig = subprocess.run(
|
||||||
[pfad, "-V"], capture_output=True, text=True, timeout=5, check=False
|
[pfad, "-V"], capture_output=True, text=True, timeout=5, check=False
|
||||||
)
|
)
|
||||||
state["version"] = (fertig.stdout or "").strip().splitlines()[0].strip()
|
# ``kea-dhcp4 -V`` antwortet mit "3.0.3 (3.0.3 (tarball))" -- auf
|
||||||
|
# einer Kachel steht davon die Nummer, nicht die Herkunft.
|
||||||
|
state["version"] = (fertig.stdout or "").strip().split()[0].strip()
|
||||||
except (OSError, subprocess.SubprocessError, IndexError):
|
except (OSError, subprocess.SubprocessError, IndexError):
|
||||||
state["version"] = ""
|
state["version"] = ""
|
||||||
return state
|
return state
|
||||||
Reference in new issue
Block a user