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:
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user