Browse Source

Replace db function get_session by get_writer_session

get_session was deprectaed on Ocata and removed in Queens [1].
So replace get_session by get_writer_session.

[1] https://review.openstack.org/#/c/529143

Change-Id: I0af4c5b8bcec50a07f8dc689e827566778f91393
changes/13/562513/1
wangqi 1 year ago
parent
commit
6b23a52e7f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      networking_opencontrail/l3/opencontrail_rt_callback.py

+ 1
- 1
networking_opencontrail/l3/opencontrail_rt_callback.py View File

@@ -293,7 +293,7 @@ class OpenContrailRouterHandler(common_db_mixin.CommonDbMixin,
293 293
 
294 294
     @log_helpers.log_method_call
295 295
     def disassociate_floatingips(self, context, port_id, do_notify=True):
296
-        session = db_api.get_session()
296
+        session = db_api.get_writer_session()
297 297
 
298 298
         try:
299 299
             with session.begin(subtransactions=True):

Loading…
Cancel
Save