From e497366f0e6289d1dea3aabc9eb2589d95722a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Ribaud?= Date: Fri, 2 Feb 2024 15:26:51 +0100 Subject: [PATCH] Follow up patch to correct a minor documentation issue Manila is the OpenStack Shared Filesystems service. These series of patches implement changes required in Nova to allow the shares provided by Manila to be associated with and attached to instances using virtiofs. Implements: blueprint libvirt-virtiofs-attach-manila-shares Change-Id: I9d94a80d5e86d0494f59e02949d2cc45f8055e84 --- nova/objects/share_mapping.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nova/objects/share_mapping.py b/nova/objects/share_mapping.py index 6ddccdece9..687e135e84 100644 --- a/nova/objects/share_mapping.py +++ b/nova/objects/share_mapping.py @@ -87,11 +87,12 @@ class ShareMapping(base.NovaTimestampObject, base.NovaObject): @base.remotable_classmethod def get_by_instance_uuid_and_share_id( - # This query returns only one element as a share can be - # associated only one time to an instance. - # Note: the REST API prevent the user to create duplicate share - # mapping by raising an exception.ShareMappingAlreadyExists. cls, context, instance_uuid, share_id): + """This query returns only one element as a share can be + associated only one time to an instance. + Note: the REST API prevent the user to create duplicate share + mapping by raising an exception.ShareMappingAlreadyExists. + """ share_mapping = ShareMapping(context) db_share_mapping = db.share_mapping_get_by_instance_uuid_and_share_id( context, instance_uuid, share_id)