]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/nfs/cluster.py
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / nfs / cluster.py
index 61bc477727baa5ba2d5e80c4697d512e7c4f4e23..d0adaa49d7dec217f9ee65d29c6a6aa0a8ec4e89 100644 (file)
@@ -201,6 +201,8 @@ class NFSCluster:
 
     def show_nfs_cluster_info(self, cluster_id: Optional[str] = None) -> Tuple[int, str, str]:
         try:
+            if cluster_id and cluster_id not in available_clusters(self.mgr):
+                raise ClusterNotFound()
             info_res = {}
             if cluster_id:
                 cluster_ls = [cluster_id]