It should say the cluster does not exist
Fixes: https://tracker.ceph.com/issues/58138
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit
cddaef44ea85bf171ee5c87a8f7d2c098a16819b)
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]