Skip to content

Commit

Permalink
Merge PR ceph#37214 into master
Browse files Browse the repository at this point in the history
* refs/pull/37214/head:
	mgr/volumes/nfs: Check if orchestrator spec service_id is valid

Reviewed-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Sep 19, 2020
2 parents 22b3d48 + db7353b commit 0275e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pybind/mgr/volumes/fs/nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0275e1c

Please sign in to comment.