summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangqi <wang.qi@99cloud.net>2018-04-19 07:54:53 +0000
committerwangqi <wang.qi@99cloud.net>2018-04-19 07:55:23 +0000
commit6b23a52e7f40da4ffb2354d7f800f6c325661276 (patch)
treef90a2ab678bce7e87c21f0ce3c73b962155a5cd3
parent29a6dd665b1dcb7d88dd3833a17b096d4c890b55 (diff)
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
Notes
Notes (review): Code-Review+1: Nam Nguyen Hoai <namnh@vn.fujitsu.com> Code-Review+2: Sukhdev Kapur <sukhdevkapur@gmail.com> Workflow+1: Sukhdev Kapur <sukhdevkapur@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 22 Aug 2018 22:05:43 +0000 Reviewed-on: https://review.openstack.org/562513 Project: openstack/networking-opencontrail Branch: refs/heads/master
-rw-r--r--networking_opencontrail/l3/opencontrail_rt_callback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking_opencontrail/l3/opencontrail_rt_callback.py b/networking_opencontrail/l3/opencontrail_rt_callback.py
index 16c8f07..edef5b6 100644
--- a/networking_opencontrail/l3/opencontrail_rt_callback.py
+++ b/networking_opencontrail/l3/opencontrail_rt_callback.py
@@ -293,7 +293,7 @@ class OpenContrailRouterHandler(common_db_mixin.CommonDbMixin,
293 293
294 @log_helpers.log_method_call 294 @log_helpers.log_method_call
295 def disassociate_floatingips(self, context, port_id, do_notify=True): 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 try: 298 try:
299 with session.begin(subtransactions=True): 299 with session.begin(subtransactions=True):