]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes/nfs: Check if orchestrator spec service_id is valid
authorVarsha Rao <varao@redhat.com>
Thu, 17 Sep 2020 10:39:52 +0000 (16:09 +0530)
committerVarsha Rao <varao@redhat.com>
Thu, 17 Sep 2020 10:39:52 +0000 (16:09 +0530)
Fixes: https://tracker.ceph.com/issues/47512
Signed-off-by: Varsha Rao <varao@redhat.com>
src/pybind/mgr/volumes/fs/nfs.py

index 11bcc5fd9d39c8818dcac83e746aa00c6d4f4853..d1f355770113c7c32c9143e1f2ee983cee565406 100644 (file)
@@ -29,7 +29,8 @@ def available_clusters(mgr):
     completion = mgr.describe_service(service_type='nfs')
     mgr._orchestrator_wait([completion])
     orchestrator.raise_if_exception(completion)
-    return [cluster.spec.service_id.replace('ganesha-', '', 1) for cluster in completion.result]
+    return [cluster.spec.service_id.replace('ganesha-', '', 1) for cluster in completion.result
+            if cluster.spec.service_id]
 
 
 def export_cluster_checker(func):