From 421c9da87eaa736841514f5127ad181b06feda67 Mon Sep 17 00:00:00 2001 From: saltydk Date: Thu, 12 Dec 2024 05:59:33 +0100 Subject: [PATCH] diag: fix Cloudflare SSL mode lookup --- roles/diag/files/cloudflare_ssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/diag/files/cloudflare_ssl.py b/roles/diag/files/cloudflare_ssl.py index 6950dc4507..32d849d3ad 100644 --- a/roles/diag/files/cloudflare_ssl.py +++ b/roles/diag/files/cloudflare_ssl.py @@ -22,7 +22,7 @@ def get_ssl_tls_mode(auth_email, auth_key, zone_name): # Get the SSL/TLS settings for the zone try: - ssl_settings = cf.zones.settings.ssl.get(zone_id=zone_id).to_dict() + ssl_settings = cf.zones.settings.get(setting_id='ssl', zone_id=zone_id).to_dict() ssl_mode = ssl_settings['value'] print(f"{ssl_mode}") except cloudflare.APIConnectionError as e: