athenad: return normalized origin in getVersion() (#31283)

old-commit-hash: 9ab374f3b05421af5978adc508981a7af5f9f4f4
This commit is contained in:
Greg Hogan
2024-02-02 16:29:45 -08:00
committed by GitHub
parent 3c67b8df09
commit b7edab29e6
+2 -2
View File
@@ -36,7 +36,7 @@ from openpilot.common.realtime import set_core_affinity
from openpilot.system.hardware import HARDWARE, PC
from openpilot.system.loggerd.xattr_cache import getxattr, setxattr
from openpilot.common.swaglog import cloudlog
from openpilot.system.version import get_commit, get_origin, get_short_branch, get_version
from openpilot.system.version import get_commit, get_normalized_origin, get_short_branch, get_version
from openpilot.system.hardware.hw import Paths
@@ -316,7 +316,7 @@ def getMessage(service: str, timeout: int = 1000) -> dict:
def getVersion() -> Dict[str, str]:
return {
"version": get_version(),
"remote": get_origin(''),
"remote": get_normalized_origin(''),
"branch": get_short_branch(''),
"commit": get_commit(default=''),
}