From 98ef4c775583dce926a50a400a428542dfc8f85f Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 2 Apr 2024 14:20:21 +0100 Subject: [PATCH] db: Post-migration cleanup Now that we have migrated all of our DB APIs to enginefacade, we can clean up the outstanding TODOs. Signed-off-by: Stephen Finucane Change-Id: Iee198a16f030f1205d38b7c232d4e3a42642c756 --- manila/db/api.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/manila/db/api.py b/manila/db/api.py index 7b83384c03..e7b39ee0a0 100644 --- a/manila/db/api.py +++ b/manila/db/api.py @@ -997,24 +997,22 @@ def export_locations_update( #################### -def export_location_metadata_get(context, export_location_uuid, session=None): +def export_location_metadata_get(context, export_location_uuid): """Get all metadata of an export location.""" - return IMPL.export_location_metadata_get( - context, export_location_uuid, session=session) + return IMPL.export_location_metadata_get(context, export_location_uuid) -def export_location_metadata_delete(context, export_location_uuid, keys, - session=None): +def export_location_metadata_delete(context, export_location_uuid, keys): """Delete metadata of an export location.""" return IMPL.export_location_metadata_delete( - context, export_location_uuid, keys, session=session) + context, export_location_uuid, keys) def export_location_metadata_update(context, export_location_uuid, metadata, - delete, session=None): + delete): """Update metadata of an export location.""" return IMPL.export_location_metadata_update( - context, export_location_uuid, metadata, delete, session=session) + context, export_location_uuid, metadata, delete) ####################