File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55
66from object_format import ErrorResponseBase
77import orchestrator
8+ from orchestrator import NoOrchestrator
89import cephfs
910from mgr_util import CephfsClient , open_filesystem
1011
@@ -67,7 +68,11 @@ def available_clusters(mgr: 'Module') -> List[str]:
6768 return value: ['vstart']
6869 '''
6970 # TODO check cephadm cluster list with rados pool conf objects
70- completion = mgr .describe_service (service_type = 'nfs' )
71+ try :
72+ completion = mgr .describe_service (service_type = 'nfs' )
73+ except NoOrchestrator :
74+ log .exception ("No orchestrator configured" )
75+ return []
7176 orchestrator .raise_if_exception (completion )
7277 assert completion .result is not None
7378 return [cluster .spec .service_id for cluster in completion .result
You can’t perform that action at this time.
0 commit comments