mgr/nfs: Updated enable_nfsv3 check while export creation

Fixes: https://tracker.ceph.com/issues/74492
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
(cherry picked from commit 64732c127d)
This commit is contained in:
Shweta Bhosale 2026-04-13 17:16:22 +05:30 committed by Patrick Donnelly
parent 41e187ebaa
commit 58cac6f23a
No known key found for this signature in database
GPG Key ID: 053758C0A8A3CE2F

View File

@ -237,7 +237,7 @@ class ExportMgr:
completion = self.mgr.describe_service(service_type='nfs', service_name=f'nfs.{cluster_id}')
services = orchestrator.raise_if_exception(completion)
for service in services:
if service.spec and isinstance(service.spec, NFSServiceSpec):
if service.spec:
spec = cast(NFSServiceSpec, service.spec)
if getattr(spec, 'enable_nfsv3', False):
return [3, 4]