Browse Source

Merge "Cannot update ssl certificate when update listener"

Zuul 8 months ago
parent
commit
c5f4f7a9c2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      neutron_lbaas_dashboard/api/rest/lbaasv2.py

+ 2
- 1
neutron_lbaas_dashboard/api/rest/lbaasv2.py View File

@@ -99,7 +99,6 @@ def create_listener(request, **kwargs):
99 99
         listenerSpec['description'] = data['listener']['description']
100 100
     if data.get('certificates'):
101 101
         listenerSpec['default_tls_container_ref'] = data['certificates'][0]
102
-        listenerSpec['sni_container_refs'] = data['certificates']
103 102
 
104 103
     listener = neutronclient(request).create_listener(
105 104
         {'listener': listenerSpec}).get('listener')
@@ -268,6 +267,8 @@ def update_listener(request, **kwargs):
268 267
         listener_spec['name'] = data['listener']['name']
269 268
     if data['listener'].get('description'):
270 269
         listener_spec['description'] = data['listener']['description']
270
+    if data.get('certificates'):
271
+        listener_spec['default_tls_container_ref'] = data['certificates'][0]
271 272
 
272 273
     listener = neutronclient(request).update_listener(
273 274
         listener_id, {'listener': listener_spec}).get('listener')

Loading…
Cancel
Save