fix: Address code review feedback

- Fix docstring formatting in _create_ssl_context
- Break long line in provisioning.py for better readability

Co-authored-by: abhi1693 <5083532+abhi1693@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-22 05:30:29 +00:00
parent 42a6a42902
commit 217f98afcc
2 changed files with 4 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ def _redacted_url_for_log(raw_url: str) -> str:
def _create_ssl_context(config: GatewayConfig) -> ssl.SSLContext | None:
"""Create SSL context for websocket connection.
Returns None for non-SSL connections (ws://) or an SSL context for wss://.
If allow_insecure_tls is True, the context will not verify certificates.
"""

View File

@@ -971,7 +971,9 @@ def _control_plane_for_gateway(gateway: Gateway) -> OpenClawGatewayControlPlane:
raise OpenClawGatewayError(msg)
return OpenClawGatewayControlPlane(
GatewayClientConfig(
url=gateway.url, token=gateway.token, allow_insecure_tls=gateway.allow_insecure_tls
url=gateway.url,
token=gateway.token,
allow_insecure_tls=gateway.allow_insecure_tls,
),
)