Update backend/app/services/openclaw/provisioning.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Abhimanyu Saharan
2026-02-25 03:37:05 +05:30
committed by GitHub
parent 3f158940cd
commit 842a0770a8

View File

@@ -113,13 +113,8 @@ def _channel_heartbeat_visibility_patch(config_data: dict[str, Any]) -> dict[str
"""Build a minimal patch ensuring channel default heartbeat visibility is configured.
Gateways may have existing channel config; we only want to fill missing keys rather than
overwrite operator intent.
Returns:
- `None` if no change is needed
- a shallow patch dict suitable for a config merge otherwise
"""
overwrite operator intent. Returns `None` if no change is needed, otherwise returns a shallow
patch dict suitable for a config merge."""
channels = config_data.get("channels")
if not isinstance(channels, dict):
return {"defaults": {"heartbeat": DEFAULT_CHANNEL_HEARTBEAT_VISIBILITY.copy()}}