Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions python/daqconf/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,6 @@ def generate_session(
session_name: str,
op_env: str,
connectivity_service_is_infrastructure_app: bool = True,
disable_connectivity_service: bool = False,
) -> None:
"""Simple script to create an OKS configuration file for a session.
Expand Down Expand Up @@ -1230,11 +1229,14 @@ def generate_session(
opmon_uri=opmon_svc,
)

if not disable_connectivity_service:
conn_svc_cfg = db.get_dal(
class_name="ConnectivityService", uid="local-connectivity-service-config"
)
sessiondal.connectivity_service = conn_svc_cfg
# 13-Aug-2026, KAB & ELF: removed the conditional execution of the following
# few lines based on the 'disable_connectivity_service' function argument.
# We believe that the ConnSvc config should always be added to the OKS Session
# when we generate a DAQ configuration with this function.
conn_svc_cfg = db.get_dal(
class_name="ConnectivityService", uid="local-connectivity-service-config"
)
sessiondal.connectivity_service = conn_svc_cfg

db.update_dal(sessiondal)

Expand Down
Loading