Fix certificate list in listener edit box
octavia-dashboard only handles the default_tls_container_ref parameter when adding TLS/updating certs (no sni_container_refs support), but the Edit listener box was showing the sni_container_refs instead of the default_tls_container_ref. Change-Id: I95421c7de8be3198a2da3ab9e231524631d82e9e
This commit is contained in:
parent
b4e162d836
commit
6887f996da
|
@ -733,13 +733,12 @@
|
|||
|
||||
if (result.listener.protocol === 'TERMINATED_HTTPS') {
|
||||
keymanagerPromise.then(prepareCertificates).then(function addAvailableCertificates() {
|
||||
result.listener.sni_container_refs.forEach(function addAvailableCertificate(ref) {
|
||||
var ref = result.listener.default_tls_container_ref;
|
||||
model.certificates.filter(function matchCertificate(cert) {
|
||||
return cert.id === ref;
|
||||
}).forEach(function addCertificate(cert) {
|
||||
model.spec.certificates.push(cert);
|
||||
});
|
||||
});
|
||||
}, certificatesError);
|
||||
$('#wizard-side-nav ul li:last').show();
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
protocol_port: 80,
|
||||
connection_limit: 999,
|
||||
load_balancers: [{id: '1234'}],
|
||||
sni_container_refs: ['container2'],
|
||||
default_tls_container_ref: container2,
|
||||
insert_headers: {
|
||||
'X-Forwarded-For': 'True',
|
||||
'X-Forwarded-Port': 'True',
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix a bug that prevented to display the ``default_tls_container_ref`` when
|
||||
editing an HTTP_TERMINATED listener.
|
Loading…
Reference in New Issue