Skip to content

Commit

Permalink
diag: fix Cloudflare SSL mode lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Dec 12, 2024
1 parent 9709b53 commit 421c9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/diag/files/cloudflare_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 421c9da

Please sign in to comment.