lxd/storage_ceph_utils.go
func cephOSDPoolExists(ClusterName string, poolName string, userName string) bool {
	_, err := shared.RunCommand(
		"ceph",
		"--name", fmt.Sprintf("client.%s", userName),
		"--cluster", ClusterName,
		"osd",
		"pool",
		"get",
		poolName,
		"size")
	if err != nil {
		return false
	}

	return true
}
func cephOSDPoolExists(ClusterName string, poolName string, userName string) bool {
	_, err := shared.RunCommand(
		"ceph",
		"--name", fmt.Sprintf("client.%s", userName),
		"--cluster", ClusterName,
		"osd",
		"pool",
		"get",
		poolName,
		"size")
	if err != nil {
		return false
	}

	return true
}
func cephOSDPoolExists ( ClusterName string , poolName string , userName string ) bool { _ , err := shared . RunCommand ( " " , " " , fmt . Sprintf ( " " , userName ) , " " , ClusterName , " " , " " , " " , poolName , " " ) if err != nil { return false } return true }
// cephOSDPoolExists checks whether a given OSD pool exists.
cephOSDPoolExists checks whether a given OSD pool exists .