Files
haproxy-openmanager/backend
Taylan Bakırcıoğlu 35dd8e5d13 Fix KeyError: ssl_name in bulk import parse
CRITICAL BUG: P1 fix broke parse response due to dict format change

ROOT CAUSE:
- P1 changed ssl_auto_assigned_frontends dict format
- Old: {'frontend': ..., 'ssl_name': ..., 'ssl_id': ...}
- New: {'frontend': ..., 'matched_certs': [...], 'total_matched': ...}
- But lines 943, 967 still accessed f['ssl_name'] → KeyError!

SOLUTION:
- Line 944: Loop through matched_certs to extract ssl_names
- Line 969: Build matched_info from matched_certs array
- Multi-SSL format now consistent throughout

EXAMPLE OUTPUT:
SSL AUTO-ASSIGNED: 1 frontend(s) automatically matched
Matched: public_ssl (3 certs: example-cert1, demo-cluster-cert, example-cert3)

IMPACT:
- Parse now completes successfully
- Shows all 3 matched SSL certs in response
- User sees detailed SSL matching info

Ref: demo-cluster parse error
2025-11-18 21:58:05 +03:00
..
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00