]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: use consistent $type.$id naming
authorSage Weil <sage.weil@dreamhost.com>
Wed, 16 Mar 2011 05:21:06 +0000 (22:21 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 16 Mar 2011 05:21:06 +0000 (22:21 -0700)
Use $type.$id, regardless of what the user uses.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/init-ceph.in

index 528bdd9b42fc27f978a80877e4956ae3d2cd8190..d9fbaa9e00e154f3d50f9a819401b2e54bfa61d1 100644 (file)
@@ -165,6 +165,7 @@ for name in $what; do
     type=`echo $name | cut -c 1-3`   # e.g. 'mon', if $item is 'mon1'
     id=`echo $name | cut -c 4- | sed 's/\\.//'`
     num=$id
+    name="$type.$id"
 
     get_conf auto_start "" "auto start"
     if [ -z "$@" ] || [ "$@" = "mds" ]; then