mirror of
https://github.com/ceph/ceph
synced 2026-08-01 22:45:39 +00:00
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:
parent
41e187ebaa
commit
58cac6f23a
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user