fix: use dev PVs for AGEBD-ALH and AGEBD-MASTER pvs of services
Deploy / deploy (push) Successful in 3s

This commit is contained in:
Benjamin Labrecque
2026-07-24 16:08:07 +02:00
parent fa7d8a08da
commit 1aa55ccae3
+8 -1
View File
@@ -112,6 +112,9 @@ class DevPVLink(PVLink):
# PV name if the PV belongs to that service. For other PVs
# that don't belong to that service, we want to use the prod
# version even in the dev environment.
#
# All services have AGEBD-ALH and AGEBD-MASTER default PVs.
# These should also use dev PVs in the dev environment.
service_name: str | None = None
def __init__(self, pvname, **kwargs):
@@ -120,7 +123,11 @@ class DevPVLink(PVLink):
def _get_pvname_dev(self, pvname):
device, record = pvname.split(":")
if device == f"AGEBD-{self.service_name}":
if device in [
f"AGEBD-{self.service_name}",
"AGEBD-ALH",
"AGEBD-MASTER",
]:
return f"{device}-DEV:{record}"
return pvname