From 2b44de6a3e61bef9f0781548682a0543c0de23d5 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 16 Oct 2023 12:54:16 +0200 Subject: [PATCH] fix: rename incorrect property of StartupArgs --- ansible_rulebook/websocket.py | 2 +- tests/test_websocket.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_rulebook/websocket.py b/ansible_rulebook/websocket.py index bbcdcaed..15b4ea7d 100644 --- a/ansible_rulebook/websocket.py +++ b/ansible_rulebook/websocket.py @@ -75,7 +75,7 @@ async def request_workload( if data.get("type") == "ControllerInfo": response.controller_url = data.get("url") response.controller_token = data.get("token") - response.controller_verify_ssl = data.get("ssl_verify") + response.controller_ssl_verify = data.get("ssl_verify") return response except CancelledError: logger.info("closing websocket due to task cancelled") diff --git a/tests/test_websocket.py b/tests/test_websocket.py index d5eff4b0..9218ac96 100644 --- a/tests/test_websocket.py +++ b/tests/test_websocket.py @@ -96,7 +96,7 @@ async def test_request_workload(): assert sha1 == sha2 assert response.controller_url == controller_url assert response.controller_token == controller_token - assert response.controller_verify_ssl == controller_ssl_verify + assert response.controller_ssl_verify == controller_ssl_verify assert response.rulesets[0].name == "Demo rules" assert len(response.rulesets[0].rules) == 6