From: Varsha Rao Date: Thu, 17 Sep 2020 10:39:52 +0000 (+0530) Subject: mgr/volumes/nfs: Check if orchestrator spec service_id is valid X-Git-Tag: v17.0.0~1080^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=db7353b4bebfca9119d21015d60f5a3e6347f658;p=ceph-ci.git mgr/volumes/nfs: Check if orchestrator spec service_id is valid Fixes: https://tracker.ceph.com/issues/47512 Signed-off-by: Varsha Rao --- diff --git a/src/pybind/mgr/volumes/fs/nfs.py b/src/pybind/mgr/volumes/fs/nfs.py index 11bcc5fd9d3..d1f35577011 100644 --- a/src/pybind/mgr/volumes/fs/nfs.py +++ b/src/pybind/mgr/volumes/fs/nfs.py @@ -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):