diff --git a/deploy_to_wazuh.py b/deploy_to_wazuh.py index f39a96d..c33fd8d 100644 --- a/deploy_to_wazuh.py +++ b/deploy_to_wazuh.py @@ -22,9 +22,8 @@ def get_token(): params={"raw": "true"} ) print(f"🔍 Response status: {response.status_code}") - print(f"🔍 Response body: {response.text}") response.raise_for_status() - return response.json()["data"]["token"] + return response.text.strip() def upload_file(token, endpoint, filename, content): headers = {