In get_local_daemon_list() the sed expression trimming the cluster
name from the host name was trimming too much if the host name
contained hyphens.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
if [ -d "/var/lib/ceph/$type" ]; then
for i in `find /var/lib/ceph/$type -mindepth 1 -maxdepth 1 -type d -printf '%f\n'`; do
if [ -e "/var/lib/ceph/$type/$i/sysvinit" ]; then
- id=`echo $i | sed 's/.*-//'`
+ id=`echo $i | sed 's/[^-]*-//'`
local="$local $type.$id"
fi
done