]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: DTRT when cconf returns host = localhost
authorSage Weil <sage@newdream.net>
Wed, 6 Oct 2010 23:32:43 +0000 (16:32 -0700)
committerSage Weil <sage@newdream.net>
Thu, 7 Oct 2010 14:28:58 +0000 (07:28 -0700)
cconf behavior was just changed by bcf1bdef56a256d4857dd4f9d859acca631cc347

Signed-off-by: Sage Weil <sage@newdream.net>
src/ceph_common.sh

index 5bd9b97f7671320fece8a18ab9231359a34ee38d..fa3f867c790591dcd3ef027ed7067bfbecac1534 100644 (file)
@@ -46,6 +46,7 @@ verify_conf() {
 check_host() {
     # what host is this daemon assigned to?
     host=`$CCONF -c $conf -i $id -t $type host`
+    [ "$host" = "localhost" ] && host=""
     ssh=""
     rootssh=""
     dir=$PWD